T09 · Insecure Skill Coding Practices
- Location
main.py:27- Finding
Unvalidated Input Permits Injection of Additional Nmap Arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This network-scanning skill is coherent, but needs review because it can probe broad networks and weak input checks can let requests change Nmap behavior beyond the documented options.
Install only if you intend to run authorized network scans. Use it in a controlled environment, avoid broad CIDR or aggressive scans unless approved, and treat the input-validation gaps as something to fix before exposing the skill to untrusted users or automated agents.
main.py:27Unvalidated Input Permits Injection of Additional Nmap Arguments
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
ats, including CIDR notation, IP ranges, and comma-separated lists. Defaults to quick scan for CIDR.
target: The target network or IP address to scan (e.g., 192.168.1.0/24, 192.168.1.1-192.168.1.10, 192.168.1.1,192.168.1.2).ports: The ports to scan (e.g., 80,443).--quick: (Optional) Scan only the top 10 ports.--fast: (Optional) Use aggressive scan settings (nmap -T4).--timeout: (Optional) Set a timeout in seconds for the scan (default: 30).--top-ports: (Optional) Scan the top N most common ports (e.g., --top-ports 100).--hosts-limit: (Optional) Limit the number of hosts to scan (e.g., --hosts-limit 50).--exclude: (Optional) Exclude a specific IP address from the scan (e.g., --exclude 192.168.1.5).JSON object containing the nmap scan results. Includes scan results, nmap command used, and scan information.
To use this skill, call it with the target and ports parameters:
network-scan targ
The skill enables active network scanning but does not warn users that port scanning can disrupt services, trigger IDS/IPS alerts, or violate organizational policy or law if run without authorization. In this context, the omission increases misuse risk because the skill is explicitly designed to scan networks and even supports broader target formats such as CIDR ranges.
This skill performs active network scanning against user-supplied targets and port ranges without any warning, confirmation, or authorization check before initiating outbound probes. In an agent or automation context, that can enable unintended reconnaissance of internal or external networks, creating policy, legal, and detection risks even if the code's apparent purpose is administrative.
No suspicious patterns detected.