azure-eventhub-java

ISSUES FOUND max severity CRITICALSkillSpector Caution 0 registry microsoft last scanned 1 scan

5 findings (1 critical, 4 low), mainly social engineering, policy violation, command injection. Most recent scan 2026-02-05.

This Azure Event Hubs Java SDK skill is primarily a documentation/reference skill with LOW severity issues. The skill contains no executable scripts, no data exfiltration attempts, no prompt injection, and no malicious code. The main concerns are: (1) missing optional metadata fields that would help clarify the skill's intended usage, (2) an incomplete code example that could lead to resource management issues if used as-is, and (3) references to non-existent Python files that appear to be packaging artifacts. These are documentation quality issues rather than security threats. The skill appears safe for use as a reference guide, but the incomplete code example should be completed to prevent potential resource leaks in generated code.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

SkillSpector found no issues but could not fully inspect the package, usually because SKILL.md refers to a file that is not present, so it fails closed to CAUTION instead of SAFE. Read it as "not fully checked", not as a finding. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Build real-time streaming applications with Azure Event Hubs SDK for Java. Use when implementing event streaming, high-throughput data ingestion, or building event-driven architectures.

Package
3 files, 36 KB
SKILL.md
757 words, 12+ sections
Code
None. Instructions only.

SKILL.md covers: Azure Event Hubs SDK for Java · Installation · Client Creation · EventHubProducerClient · With DefaultAzureCredential · EventHubConsumerClient · Async Clients · Core Patterns · Send Single Event · Send Event Batch · Send to Specific Partition · Send with Partition Key

Findings

CRITICAL INJECTION ATTACK detected by YARA Command Injectionstatic

Detects SQL injection attack patterns including keywords, tautologies, and database functions: sleep(

SKILL.md:209

Thread.sleep(Duration.ofMinutes(5).toMillis());
Remediation: Review and remove injection attack pattern
LOW Skill does not specify a license Policy Violationstatic

Skill manifest does not include a 'license' field. Specifying a license helps users understand usage terms.

SKILL.md

Remediation: Add 'license' field to SKILL.md frontmatter (e.g., MIT, Apache-2.0)
LOW Missing Critical Metadata Fields Social Engineeringllm

The skill manifest is missing several important metadata fields including 'license', 'compatibility', and 'allowed-tools'. While these fields are optional per the agent skills specification, their absence makes it difficult to assess the skill's intended usage constraints and compatibility requirements. This is particularly relevant for a skill that provides SDK documentation and may influence code generation.

SKILL.md:1

YAML frontmatter missing: license, compatibility, allowed-tools fields
Remediation: Add complete metadata to the YAML frontmatter: - license: Specify the license (e.g., MIT, Apache-2.0) - compatibility: Specify target environments (e.g., 'Works in Claude.ai, Claude Code, API') - allowed-tools: Specify which agent tools can be used (e.g., [Read, Write, Python] if code generation is intended)
LOW Incomplete Code Example with Potential Resource Issue Resource Abusellm

The instruction body contains an incomplete code example in the 'Send Event Batch' section. The code snippet ends abruptly with 'batch = producer.createBatch();' without proper completion, error handling, or resource cleanup. If an agent were to generate code based on this incomplete example, it could result in resource leaks (unclosed producers) or infinite loops if the batch-full condition is not properly handled.

SKILL.md

Code snippet ends with:
```java
if (!batch.tryAdd(event)) {
    producer.send(batch);
    batch = producer.createBatch();
```
No closing braces, no final batch send, no resource cleanup, no error handling.
Remediation: Complete the code example with: 1. Proper loop termination 2. Final batch send after loop 3. Resource cleanup (producer.close()) 4. Error handling for batch creation failures 5. Try-with-resources pattern for automatic cleanup
LOW Referenced Files Not Found in Package Social Engineeringllm

The skill references three Python files (beginning.py, specific.py, end.py) that are not included in the skill package. This creates misleading documentation as users or agents may expect these files to exist. The references appear to be artifacts or errors in the skill packaging process, as the skill is focused on Java SDK documentation and should not reference Python files.

SKILL.md

Referenced files not found: beginning.py, specific.py, end.py
Remediation: Remove references to non-existent Python files from the skill package, or if these files are intended to be part of the skill, include them in the package with appropriate content. Verify that all file references in the documentation correspond to actual files in the skill package.

What is in the package

FileKindSize
SKILL.mddoc10 KB
references/acceptance-criteria.mddoc12 KB
references/examples.mddoc13 KB

External hosts referenced

github.com

Hostnames that appear in the skill's files. Referencing a host is not a finding; compare against the findings above and the skill's stated purpose.

Package contents recorded 2026-10-22 at commit cfbcbbdc679c. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources