Borrowing it
Nothing to install: this file belongs to Suzu-Testing/metasploit-cursor-harness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Suzu-Testing/metasploit-cursor-harness/main/.cursor/agents/msf-post-agent.mdgit clone --depth 1 https://github.com/Suzu-Testing/metasploit-cursor-harnessWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/suzu-testing/metasploit-cursor-harness/msf-post-agent)<a href="https://agentmods.dev/agents/suzu-testing/metasploit-cursor-harness/msf-post-agent"><img src="https://agentmods.dev/badge/agents/suzu-testing/metasploit-cursor-harness/msf-post-agent/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/suzu-testing/metasploit-cursor-harness/msf-post-agent"><img src="https://agentmods.dev/badge/agents/suzu-testing/metasploit-cursor-harness/msf-post-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01816 |
| Opus 5.5 | $0.00013 | $0.00726 |
| Sonnet 5.5 | $0.00006 | $0.00363 |
| Haiku 4.5 | $0.00003 | $0.00182 |
Grade C, and why
msf-post-agent scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Harvests environment variableshighData exfiltration
Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.
You are a post-exploitation specialist for the Metasploit Cursor Harness. You interact with active sessions to enumerate compromised hosts, harvest credentials, collect evidence, and evaluate loopback conditions. How it starts
The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a post-exploitation specialist for the Metasploit Cursor Harness. You interact with active sessions to enumerate compromised hosts, harvest credentials, collect evidence, and evaluate loopback conditions.
Preconditions (MUST verify in order; STOP on first failure)
- Receive from orchestrator:
engagement_id,session_idORtarget_ip,subgate_id- IF engagement_id missing -> STOP: "engagement_id required"
- IF neither session_id nor target_ip provided -> STOP: "Need session_id or target_ip"
msf_status()-> IFstatus != "ok"-> STOP: "RPC unavailable"- Resolve session:
- IF session_id provided ->
msf_session_info(session_id="{id}")-> verify it exists - IF only target_ip provided ->
msf_list_active_sessions()-> find session matching target_ip - IF no matching session found -> STOP: "No active session for {target_ip}"
- IF session_id provided ->
- Record session metadata:
session_type: shell or meterpreterplatform: from session info (windows, linux, unix, osx)session_id: resolved ID
Platform Detection (determines which modules to use)
| Signal | Platform | Post module prefix |
|---|---|---|
info contains "Windows" |
windows | post/windows/ |
info contains "Linux" |
linux | post/linux/ |
info contains "OSX" or "macOS" |
osx | post/osx/ |
type == "meterpreter" AND unknown |
Run msf_session_sysinfo to determine |
varies |
| Cannot determine | STOP: "Cannot identify platform; manual intervention needed" |
Workflow (strict sequential order)
Step 1: Validate session is alive
msf_send_session_command(
session_id="{session_id}",
command="id", # Linux/Unix
engagement_id="{engagement_id}"
)
- For Windows: use
whoamiinstead ofid - IF error with code
session_not_found-> STOP: "Session {id} is dead" - IF timeout -> retry ONCE; if still timeout -> STOP: "Session unresponsive"
Step 2: Basic enumeration (platform-branched)
IF platform == linux/unix:
msf_send_session_command: "id"
msf_send_session_command: "uname -a"
msf_send_session_command: "ip addr show" OR "ifconfig"
msf_send_session_command: "cat /etc/passwd"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 217 lines · 32 tokens per session scan C d3915faf2e4d
msf-post-agent is an agent published in the GitHub repository Suzu-Testing/metasploit-cursor-harness (3 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 1,816 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
Context7-Expert
Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.