Back to skill

Security audit

alibabacloud-web-application-attacks-analysis

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence, citing a report-writing flaw that could overwrite the analyzed log and a separate issue that may misattribute abusive traffic; some checks were incomplete.

Consider avoiding installation until the input-overwrite issue is addressed and the partially inspected script is reviewed. If you do install, protect original logs and check what file, network, and shell access the host will grant; the scan did not establish that the flagged credential paths are being accessed.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/log_analyzer.py
Finding

Untrusted X-Forwarded-For values become authoritative attack-source identities

Content
View full analysis

Impact

An attacker can attribute abusive traffic to an unrelated public IP and place that address in deny recommendations and machine-readable attack-source findings. Rotating forged entries also defeats accurate per-source accounting. If an operator follows the recommendations, legitimate addresses can be blocked while the actual source remains unblocked.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (15)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 54)May include surrounding context.

md
**Single entry point**: all analysis MUST be executed through the entry script `scripts/log_analyzer.py`. Do not hand-assemble parsing or detection command chai

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 100)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py access.log

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 106)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py access.log --output-format markdown

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 112)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py access.log --time-window 30

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 118)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py access.log --format nginx --output /tmp/report.txt

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 139)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py /tmp/access.log

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 145)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py access.log.gz --time-window 60

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 151)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py apache_access --format apache --output-format markdown

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 157)May include surrounding context.

md
cd $SKILL_DIR && python3 scripts/log_analyzer.py u_ex260531.log --format iis

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/log_analyzer.py (reported line 76)May include surrounding context.

python
LOGIN_PATHS = {'/login', '/api/login', '/auth', '/signin', '/api/v1/auth',
               '/oauth/token', '/api/signin', '/user/login', '/admin/login'}

SCAN_PATHS = {'/.env', '/.git/config', '/.git/HEAD', '/phpmyadmin',
              '/wp-admin', '/wp-login.php', '/admin', '/api/v1/users',
              '/config.json', '/.aws/credentials', '/env.js',
              '/server-status', '/actuator', '/manager/html', '/config', '/backup'}

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/log_analyzer.py (reported line 78)May include surrounding context.

python
SCAN_PATHS = {'/.env', '/.git/config', '/.git/HEAD', '/phpmyadmin',
              '/wp-admin', '/wp-login.php', '/admin', '/api/v1/users',
              '/config.json', '/.aws/credentials', '/env.js',
              '/server-status', '/actuator', '/manager/html', '/config', '/backup'}

SUSPICIOUS_UA_KEYWORDS = {'curl', 'wget', 'python-requests', 'go-http-client',

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The skill requires English-language reports without user opt-in.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The instruction specifies that reports must be 'pure ASCII English' without offering a language choice or documenting a locale-specific justification. The verbatim-copy requirements for the final answer also carry this restriction into user-facing responses, including for users invoking the skill in Chinese.

Content

No source excerpt is available for this finding.

The report is forced to English even when the user communicates in another language.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The instruction requires the report file to remain in English regardless of the user's language, without offering an opt-in or providing a domain-specific justification. Allowing a translated summary in the reply does not remove the language restriction on the report itself.

Content

No source excerpt is available for this finding.

Report writing can overwrite the input log despite the explicit guarantee that the input is never modified.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The report is written with Path(args.output).write_text(), which truncates an existing destination without checking whether it is the input log or an alias through a symbolic or hard link. Selecting the input as --output therefore destroys the original log after analysis, contradicting the read-only guarantee and potentially removing evidence needed for incident investigation.

Content

No source excerpt is available for this finding.