Conversation
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the 鈿欙笍 Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch has not been deployed
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.
Adds
DarkmoonToolkit, so a CAMEL agent can drive a self-hosted Darkmoon (GPL-3.0 autonomous AI pentest platform):darkmoon_run_pentest(start a campaign, optionally wait and return findings plus severity stats),darkmoon_get_findings,darkmoon_list_campaigns.Shape mirrors recent merged vendor toolkits such as PlivoToolkit (#4194):
camel/toolkits/darkmoon_toolkit.py, export incamel/toolkits/__init__.py,test/toolkits/test_darkmoon_toolkit.py,examples/toolkits/darkmoon_toolkit.py.Design notes
api_keys_required; JWT login cached). There is no public hosted endpoint.httpx, already a core dependency, so no new dependency and no pyproject change.darkmoon_prefix) and returns an error string on failure like other toolkits.darkmoon_run_pentestis marked@manual_timeoutbecause a run is long and manages its ownmax_wait_seconds; it only reports a campaign created by that run (never a pre-existing one) and reportstimed_outrather than looping forever.detailonly, never credentials.Testing: 14 unit tests with an in-memory fake API over
httpx.MockTransport(login caching, bearer header, missing credentials, no password leak, network error, no-wait, wait/poll, log-not-yet-created 404, timeout, stale-campaign guard).pytest test/toolkits/test_darkmoon_toolkit.pypasses locally,ruff format --check,ruff checkandmypyclean on the new files. Tool schemas generate correctly throughFunctionTool.get_openai_tool_schema(). No live Darkmoon instance is required to run the tests.Findings can include false positives and require human review; only test systems you are authorised to test.
馃 Generated with Claude Code
https://claude.ai/code/session_014HBQNzAf5C2E3MiJC48HQw