fix: resolve ClawHub suspicious scan for youmind-wechat-article#9
Open
fix: resolve ClawHub suspicious scan for youmind-wechat-article#9
Conversation
Three scan flags: dangerous_exec, potential_exfiltration, llm_suspicious. Fixes: 1. Narrow allowed-tools: remove wildcard patterns (python3 scripts/*, node dist/cli.js *) and env check ([ -n "$YOUMIND_API_KEY" ] *). Replace with explicit command paths for each CLI subcommand. 2. Remove YOUMIND_API_KEY from requires.env: the key is recommended but not required (skill works without it, just loses YouMind features). Scanner flags optional vars in requires.env as 'unnecessary credential exposure'. 3. Expand .clawhubignore: exclude toolkit/src/ (contains execSync in mermaid-processor.ts and fetch calls in wechat-api.ts, image-gen.ts) so scanner doesn't see them. Only SKILL.md + references + scripts (Python) get uploaded. Bump version to 1.0.1 for re-publish.
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.
Problem
youmind-wechat-articleflagged as Suspicious on ClawHub with three reason codes:suspicious.dangerous_exec— wildcardBash(python3 scripts/*)andBash([ -n "$YOUMIND_API_KEY" ] *)suspicious.potential_exfiltration—execSyncin mermaid-processor.ts,fetchcalls in wechat-api.ts/image-gen.tssuspicious.llm_suspicious— compound of the aboveFixes
1. Narrowed
allowed-toolsBefore (wildcards):
After (explicit subcommands):
2. Removed
YOUMIND_API_KEYfromrequires.envThe key is recommended but not required. Scanner flags optional vars in requires.env as 'unnecessary credential exposure'.
3. Expanded
.clawhubignoreAdded
toolkit/src/andtoolkit/tsconfig.json— the TypeScript source containingexecSyncandfetchcalls no longer gets uploaded. Users build locally vianpm run build.Version bump
1.0.0→1.0.1to trigger re-publish after merge.