Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affiliation disclosure: I am part of the team building Darkmoon, the open source project this sample uses. Happy to adjust or drop it if a vendor-authored tool sample is not wanted.
Change
Adds
python/03-integrate/tools/darkmoon/, following the use-case README template and the layout of the other tool integrations:findings_triage.py: a Strands agent connected to@darkmoon_ai/mcp-server(stdio, version pinned) that reads a pentest campaign's findings and writes a prioritized triage brief.MCPClient(tool_filters={"allowed": [...]})exposes only the read-only tools to the model.scan <target>command that launches a run throughrun_pentest: it is not reachable by the model, requires the target to matchDARKMOON_ALLOWED_TARGETSand a typed confirmation.README.md,requirements.txt,.env.example,.gitignore.Honest scope
Darkmoon's engine and CLI are open source (GPL-3.0). The MCP server talks to the Darkmoon Dashboard API, which is part of Darkmoon Pro and self-hosted, so the sample needs a Pro instance. The README states this first and points to the CLI/GitHub Action for the open source path.
Testing
With strands-agents 1.57.2 and the real published
@darkmoon_ai/mcp-server@0.1.0against a local mock of the Dashboard API: tool listing returns exactly the three read-only tools,list_campaignsreturns throughcall_tool_sync,scanrefuses a target outside the allowlist, and an allowed target after confirmation reachesPOST /api/v1/run/campaignwith the bearer token. The Bedrock invocation was not run here (no AWS access in the test environment).Link: https://github.com/ASCIT31/Dark-Moon
🤖 Generated with Claude Code
https://claude.ai/code/session_014HBQNzAf5C2E3MiJC48HQw
Proposed in #320.