Back to skill

Security audit

low-altitude-guardian

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report capabilities beyond its stated emergency-advisory purpose, persistent data and template changes, and a potential unsafe file-write path.

Consider avoiding installation until you have reviewed whether its extra data-management and reporting functions fit your needs, and how its file access and saved changes are controlled. Treat generated plans as advisory and verify their machine-readable response modes before relying on them. The Skillspector scan is partial because a local reference was missing, so the evidence is incomplete; the verdict remains suspicious.

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/enterprise_kb_manager.py
Finding

Imported event fields control the base directory of filesystem writes

Content
View full analysis

Impact

An attacker can create directories and create or truncate JSON files outside the intended index directories. For example, a CSV row with id=gps_loss and device_type=../../../../assets/solution_templates causes the importer to overwrite assets/solution_templates/gps_loss.json with the imported event, corrupting a decision template without using the learning approval flow. Writes remain limited by filesystem permissions, JSON serialization, and sanitized filename components.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (10)

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 · README.md (reported line 287)May include surrounding context.

python3 scripts/crisis_engine.py --learn --feedback feedback.json --approved-by 张三 --apply # 备份后写入

text

反馈里的 `incident_id` 若为 `../../etc/passwd` 会被拒绝(`path_safety.py`)。
只允许更新 `confidence_adjustment` 与 `notes` 两个白名单字段,写前自动备份模板。

---

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk primarily implements retrospective fleet analytics, rather than emergency adjudication using the declared P0–P4 hierarchy and weighted decision formula. Its fleet health scoring and compliance-report generation are substantive capabilities not described in the declared purpose, rather than merely supporting details of crisis reasoning. The period argument only labels reports; it does not filter incident data. The code does remain consistent with the dependency-free and no-flight-control claims: it uses the Python standard library and contains no network or aircraft-control operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The autonomous JSON response modes identified by this finding contradict the skill's explicit advisory-only contract and are present in the supplied plan generator. A downstream consumer could interpret those fields as execution authorization during a safety-critical emergency, although the generator itself does not control aircraft; the broader claim that the whole skill lacks scoring or classification is not established.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The code's primary functionality is a separately exposed knowledge-base administration tool, rather than merely internal storage supporting an emergency assessment. It reads user-selected local files, creates and writes records under .guardian/enterprise_kb, and supports search, health reports, and exports. These substantial data-management capabilities are not represented by the declared analysis-only purpose. The code does remain consistent with the no-flight-control limitation: no network communication or flight-control integration is visible. This assessment is limited to the supplied chunk and does not establish whether the advertised decision engine exists elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

The exposed command interface covers enterprise knowledge management and routine fleet operations beyond the declared emergency decision-analysis purpose. Emergency-plan generation is plausibly related, but the independent knowledge-base and fleet-reporting workflows are not merely implementation details of a P0–P4 crisis assessment engine. This conclusion concerns the capabilities advertised by the supplied commands; the snippet does not establish their internal implementation, external resource access, dependencies, or any actual flight-control capability.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The main analytical behavior matches the description, including the absence of actual flight control. However, --learn with --apply writes feedback records under .guardian/knowledge_base and can update solution-template JSON files, creating backups and update history. These changes require a nonempty approver value and are restricted to allowed fields, but constitute an additional persistent knowledge-maintenance capability not disclosed in the declared purpose. Ordinary template loading, landing prediction, and simulated monitoring are supporting functionality rather than separate mismatches.

Content

No source excerpt is available for this finding.

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

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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · scripts/decision_manager.py (reported line 157)May include surrounding context.

python
包含执行模式和确认要求的字典
    """
    # v0.3.1: advisory-only. No level may authorize autonomous execution.
    # timeout_s is a suggested human response window, never an auto-execute trigger.
    modes = {
        CrisisLevel.L5_CRITICAL: {
            "mode": "advisory_only",

The JSON plan assigns autonomous response modes despite the skill's advisory-only scope.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The JSON renderer explicitly emits autonomous and autonomous_notify for L5 and L4, while the Markdown renderer says decisions remain with licensed operators. These machine-readable values could be treated as authorization by downstream software, creating a safety-critical integration hazard despite the absence of direct flight-control code.

Content

No source excerpt is available for this finding.

The documented analysis period is only a label; reports include events from all periods.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The period parameter labels the report but never filters the events, so a report presented as period-specific includes all historical data. This is a reporting-integrity defect that can distort emergency performance metrics and maintenance decisions; the compliance-report function exhibits the same behavior.

Content

No source excerpt is available for this finding.