skills/mukul975/anthropic-cybersecurity-skills/exploiting-nopac-cve-2021-42278-42287/Gen Agent Trust Hub
exploiting-nopac-cve-2021-42278-42287
Warn
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONMETADATA_POISONING
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/process.pycontains acheck_machine_account_quotafunction that generates a Python script string using f-strings and executes it viasubprocess.runusing thepython3 -cflag. This implementation is vulnerable to code injection if variables such asusernameorpasswordcontain malicious Python code designed to escape the string delimiters. - [COMMAND_EXECUTION]: Both
scripts/agent.pyandscripts/process.pyrely on thesubprocessmodule to call external binaries likenoPac.py,powershell.exe, andwmic.exe. These calls utilize parameters (e.g., domain names, IP addresses) that are passed into the skill's execution context without rigorous validation. - [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it is designed to ingest and act upon data (credentials, domain names, target IPs) that may be retrieved from untrusted sources. The mandatory evidence chain for this finding is as follows:
- Ingestion points: Data enters via command-line arguments in
scripts/agent.pyandscripts/process.py. - Boundary markers: No delimiters or safety instructions are used to separate untrusted input from the command logic.
- Capability inventory: The skill has the capability to execute shell commands and dynamic Python code via the
subprocessmodule. - Sanitization: The skill lacks any sanitization or escaping mechanisms for the interpolated strings, allowing malicious inputs to manipulate the execution flow.
- [METADATA_POISONING]: There is an inconsistency in the author metadata;
SKILL.mdlists 'mahipal' as the author, while theLICENSEfile is attributed to 'mukul975'.
Audit Metadata