msf-oneshot
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONPERSISTENCEDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute complex shell commands using
msfconsoleandmsfvenom. These commands are designed to exploit vulnerabilities in operating systems (e.g., MS17-010), databases (PostgreSQL, MySQL, MSSQL), and web services. - [PRIVILEGE_ESCALATION]: Instructions are provided for gaining elevated privileges on target systems using Meterpreter commands like
getsystem,hashdump, andcreds_all(via the Kiwi extension), as well as lateral movement techniques like PsExec. - [PERSISTENCE]: The skill describes methods to maintain long-term access to compromised targets using multiple transports (TCP/HTTP) and configuring handlers with
ExitOnSession falseto ensure sessions remain active across reconnections. - [DATA_EXFILTRATION]: Instructions include commands to exfiltrate data from target systems to the agent's local environment, specifically using Meterpreter's
downloadcommand (e.g.,download C:\flag.txt /tmp/flag.txt). - [DYNAMIC_EXECUTION]: The skill utilizes
msfvenomto dynamically generate executable payloads (EXE, ELF, WAR, Python, PHP) at runtime, which are then intended for deployment and execution on target machines. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a vulnerability surface for indirect prompt injection by reading untrusted output from interactive sessions.
- Ingestion points: Untrusted data enters the context through
interactive_session(action="read", ...)which captures the output of commands executed on remote targets. - Boundary markers: The instructions lack explicit delimiters or instructions to ignore potential commands embedded in target output.
- Capability inventory: The skill has access to
bashfor executing MSF tools and theinteractive_sessionMCP tool for sending commands to active shells. - Sanitization: There is no evidence of output sanitization or validation before the agent processes the data to determine its next action.
Audit Metadata