other
- Location
scripts/guard.py:154- Finding
Hardcoded Promotional URL Injected into Detection Reports
- Content
View full analysis
Vulnerability Details
File Location:
scripts/guard.py, lines 154-157
Vulnerability Type: Unsolicited promotional output injection
Risk Level: Lowpython print(f"{Colors.BOLD}📖 参考:{Colors.RESET}") print(f" 央视3·15晚会曝光 GEO 投毒案例") print(f" https://clawhub.ai/testmtcode/ai-poison-guard")Technical Analysis
The report-generation function unconditionally appends a hardcoded external project URL to every non-JSON analysis report. This external destination is unrelated to the content being analyzed and is not required for the local pattern-matching functionality.
Because the URL is embedded directly into routine output, users may interpret it as an authoritative security reference. The content hosted at that destination can change independently after the package has been reviewed. No automatic network request or remote code execution occurs, but the behavior constitutes persistent promotional output injection and creates an external trust boundary that is not disclosed or controlled by the analysis logic.
Attack Path
- A user invokes the skill to analyze text or a local file.
- The program calls
generate_report(). - The report unconditionally includes the hardcoded external URL.
- The user may follow the URL based on its placement as a security reference.
- The external destination may expose the user to content that was not included in or validated by this audit.
Impact Assessment
No local privileges, credentials, or system access are obtained through the code itself. The scope is limited to manipulation of generated output and redirection of user attention to an unaudited external destination. The principal risks are misleading attribution, unsolicited promotion, and exposure to mutable third-party content.
- Remediation
View remediation
Remediation Suggestions
- Remove the hardcoded URL from normal detection reports.
- If project attribution is necessary, expose it through an explicit
--aboutor--versionoption. - Do not present mutable external destinations as security references unless their purpose and ownership are clearly disclosed.
- If links must appear in reports, make their inclusion opt-in and maintain an allowlist of reviewed destinations.
