Back to skill

Security audit

AI Company HQ

Security checks for vulnerabilities and agentic risk

Overview

This central coordination skill is purpose-aligned, but it asks for broad state, messaging, monitoring, and permanent logging authority without enough scoping or user-control details.

Review this skill before installing in any agent environment with real tools or shared memory. Use it only with explicit administrator approval, scoped state namespaces, disabled-by-default conversation monitoring, redaction for secrets and personal data, and clear retention/deletion rules. No executable malware or remote payload behavior was found.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:59
Finding
Overbroad State Access, Conversation Monitoring, and Indefinite Data Retention## Vulnerability Details **File Location**: `SKILL.md:59-62`; `references/method-patterns.md:30, 105-106, 143, 146, 208, 211`; `prompts/05-workflow-execution.md:41-44` **Vulnerability Type**: T05: Unauthorized Access and Privilege Escalation **Risk Level**: Medium ### Vulnerable Content `SKILL.md:59-62`: ```yaml files: [read, write] network: [api] commands: [] mcp: [sessions_send, subagents] ``` `references/method-patterns.md:30`: ```markdown - **Permission Level**: L5 (Infrastructure Authority) ``` `references/method-patterns.md:105-106`: ```markdown | Level | Read | Write | Scope | |-------|------|-------|-------| | L5-Infrastructure | All | All | All states | ``` `references/method-patterns.md:143`: ```markdown 6. ARCHIVE: Previous version archived (never deleted) ``` `references/method-patterns.md:146`: ```markdown 1. SCAN: Monitor agent conversations and outputs ``` `references/method-patterns.md:208`: ```markdown | Decision | Permanent | CEO + Board | Strategic decisions, escalations | ``` `references/method-patterns.md:211`: ```markdown - Audit records can NEVER be deleted (only archived) ``` `prompts/05-workflow-execution.md:41-44`: ```markdown 5. CLOSE-LOOP - Log execution metrics for KPI tracking - Update shared state via HQ - Archive execution record for audit ``` ### Technical Analysis The Skill assigns HQ unrestricted read and write access to all states while also declaring file access, API connectivity, session messaging, and subagent capabilities. It instructs the system to monitor agent conversations and outputs, update shared state, and archive collected records indefinitely. This design violates least-privilege and data-minimization principles. Although the specification describes permission levels, HQ itself receives the highest level and no enforceable task-level authorization boundary is defined. The documentation also l ...[truncated 2467 chars]
Remediation
## Remediation Suggestions 1. Replace universal L5 access with deny-by-default, task-scoped permissions. Grant access only to explicitly identified state namespaces and operations. 2. Separate routing, state administration, auditing, and knowledge extraction into distinct roles with independent permission sets. 3. Require explicit authorization before inspecting conversations or session state. Monitoring should be disabled by default. 4. Collect only content necessary for the active task and prohibit ingestion of unrelated conversation history. 5. Redact credentials, API tokens, personal data, and confidential fields before writing records to shared state, audit storage, or the knowledge base. 6. Define finite, category-specific retention periods. Provide authorized deletion and data-subject removal procedures where legally or operationally required. 7. Restrict `files`, `network`, `sessions_send`, and `subagents` permissions to workflows that demonstrably need them; remove unused permissions. 8. Require resource-level authorization checks immediately before every state read, state write, archive operation, broadcast, and cross-agent message. 9. Record the requesting identity, authorization decision, purpose, affected resources, and redaction outcome in the audit trail without logging sensitive payloads. 10. Add tests proving that HQ cannot access unrelated states, cannot monitor conversations without approval, cannot archive secrets, and cannot retain records beyond the configured period.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (10)

Missing User Warnings

High
Confidence
97% confidence
Finding
The skill describes monitoring conversations and outputs for knowledge extraction but provides no explicit user-facing warning, notice, or consent mechanism. Because the same HQ skill also centralizes audit, routing, and state functions, undisclosed monitoring is especially dangerous: users and other agents may disclose sensitive operational, personal, or security information that is silently persisted.

Vague Triggers

Medium
Confidence
95% confidence
Finding
The trigger list is broad and generic (e.g., coordination, knowledge base, scheduling), which increases the chance the skill is invoked in situations the user did not specifically intend. Because this skill also advertises file write, network API access, and cross-agent messaging, accidental invocation could cascade into unintended actions across systems or agents.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The skill declares sensitive capabilities—file write, network/API access, and MCP cross-agent messaging/subagents—without prominent user-facing warnings or consent boundaries in the skill description. In an orchestration/HQ context, these permissions materially raise the risk of data exfiltration, unauthorized modification, or lateral propagation of unsafe instructions if the skill is invoked too broadly or misused.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
Line L23 states that all content must be in English, which imposes a language policy on users or downstream agents. Under the policy rules, forcing a specific language without offering choice, opt-in, or a documented region-specific justification is a natural-language policy violation.

Missing User Warnings

Medium
Confidence
93% confidence
Finding
The prompt instructs users to log execution metrics, update shared state, and archive records, but it does not warn that these actions may persist data or modify system state. In a copy-paste prompt intended for use in arbitrary AI chat environments, this can mislead users into triggering unintended retention, propagation, or mutation of workflow data, especially if the receiving agent is connected to external tools or memory systems.

Natural-Language Policy Violations

Medium
Confidence
96% confidence
Finding
The checklist requires the SKILL.md index to be 'English only' and says 'All content translated to English.' This is a natural-language locale restriction presented as a requirement, but the document does not offer a user choice or explain a justified region-specific need.

Vague Triggers

Medium
Confidence
95% confidence
Finding
The trigger keywords are broad and generic, such as terms related to routing, reference, logging, and conflict, which can match ordinary user requests unintentionally. This can cause over-activation of the HQ skill, leading to inappropriate access to routing/state/audit behaviors and unnecessary collection or processing of data.

Intent-Code Divergence

Medium
Confidence
93% confidence
Finding
The knowledge extraction pipeline explicitly instructs the system to monitor agent conversations and outputs, then extract and persist derived knowledge. In a centralized HQ skill with broad routing, state, and audit authority, this creates a surveillance/data-minimization risk because sensitive content may be captured outside the user’s expectations or original purpose.

Ssd 3

Medium
Confidence
95% confidence
Finding
The instructions direct the system to monitor, identify, extract, classify, publish, and notify based on agent conversations and outputs, effectively turning transient communications into persistent records. In the context of a high-privilege headquarters skill, this expands the blast radius of any sensitive disclosure and increases the risk of privacy violations, unauthorized secondary use, and long-term exposure through the knowledge base.

Natural-Language Policy Violations

Low
Confidence
88% confidence
Finding
The phrase "Full English rewrite" suggests the skill has been standardized to a specific language, but this file does not offer language choice or explain why English-only behavior is required. That can conflict with language/locale policy expectations when no opt-in or documented regional constraint is provided.

Static analysis

No suspicious patterns detected.