skills/mukul975/anthropic-cybersecurity-skills/performing-web-application-scanning-with-nikto/Gen Agent Trust Hub
performing-web-application-scanning-with-nikto
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The automation scripts
scripts/agent.pyandscripts/process.pyexecute theniktocommand-line tool using thesubprocess.runfunction. The implementation uses a list of arguments rather than a single string withshell=True, which is a recommended security practice to prevent shell injection vulnerabilities when handling target inputs.\n- [DYNAMIC_EXECUTION]: The scriptscripts/agent.pyutilizes the standardxml.etree.ElementTreelibrary for parsing Nikto XML results. This parser is vulnerable to XML External Entity (XXE) attacks. While the risk is lowered because the XML is generated by a local tool, using a hardened parser likedefusedxml(as seen inscripts/process.py) is the preferred standard.\n- [INDIRECT_PROMPT_INJECTION]: The skill processes data from external web servers which may contain malicious strings. Inscripts/process.py, scan results like URIs and server descriptions are inserted directly into an HTML report using f-strings without escaping. This creates a potential Cross-Site Scripting (XSS) surface for users viewing the report.\n - Ingestion points: Nikto XML scan results containing data fetched from external web servers.\n
- Boundary markers: No sanitization or escaping is applied to findings before inclusion in the HTML report.\n
- Capability inventory: System command execution (Nikto) and local file writing for reporting.\n
- Sanitization: The
scripts/process.pyscript usesdefusedxmlfor input parsing, but the output report generation lacks HTML entity encoding.
Audit Metadata