T01 · Skill Instruction Hijacking
- Location
ai-adlc/ai-adlc-rules/core-workflow.md:5- Finding
<![CDATA[Workflow precedence directives hijack agent behavior and broad user intents]]>
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is not clearly malicious, but it installs persistent agent instructions and bundled VS Code webviews with under-scoped scripting risks that should be reviewed before use.
Install only in a workspace where you are comfortable with persistent AI instruction files affecting future sessions. Use dry-run or manual install, review any AGENTS.md/CLAUDE.md/Copilot/Cursor/Kiro changes, avoid full-auto modes until you understand the generated file writes, and avoid the bundled dashboard extension until its webview uses safe data transfer, a restrictive CSP, and pinned or bundled JavaScript.
ai-adlc/ai-adlc-rules/core-workflow.md:5<![CDATA[Workflow precedence directives hijack agent behavior and broad user intents]]>
installer/install.sh:346<![CDATA[Installer persists Skill-controlled instructions in platform auto-load files]]>
tools/extensions/AIFLC-PDLC-Dashboard/extension/src/extension.ts:19<![CDATA[Workspace-controlled dashboard data is interpolated into an executable webview script]]>
tools/extensions/AIFLC-PDLC-Dashboard/extension/src/extension.ts:160<![CDATA[Dashboard executes mutable third-party JavaScript from an unpinned CDN URL]]>
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
| Marker | Meaning |
|--------|---------|
| `[gen]` | Tool-generated; re-derivation may overwrite (`ownership: generated`) |
| `[hyb]` | Tool-seeded, team-edited; `<!-- custom -->` content preserved on re-derivation (`ownership: hybrid`) |
| `[tool]` | Tool-owned, in a dedicated folder; not hand-edited |
| `[marker]` | Chain detection anchor — name is non-negotiable |
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
**This means you can close Kiro and resume later.** When you start a new session and say "Continue AI-PILC", the AI reads the state file and picks up exactly where you left off.
> **Important:** Don't delete state files unless you want to restart a workflow from scratch.
---
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
**This means you can close Kiro and resume later.** When you start a new session and say "Continue AI-PILC", the AI reads the state file and picks up exactly where you left off.
> **Important:** Don't delete state files unless you want to restart a workflow from scratch.
---
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
**This means you can close Kiro and resume later.** When you start a new session and say "Continue AI-PILC", the AI reads the state file and picks up exactly where you left off.
> **Important:** Don't delete state files unless you want to restart a workflow from scratch.
---
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
After AI-GCE generates governance, create a governance instruction file:
<!-- .github/instructions/governance.instructions.md -->
---
name: 'Governance enforcement'
description: 'Checks compliance against workspace governance rules'
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
You can create instructions that only activate when working in specific folders:
<!-- .github/instructions/pdlc-ai-pilc-details.instructions.md -->
---
name: 'AI-PILC detail loading'
description: 'Loads AI-PILC phase details when working in PILC output folders'
The declared description presents a broad family of injectable workflow packages for guiding AI coding agents through the software delivery lifecycle. The supplied code does not implement those workflows. Instead, it provides a command-board UI inside VS Code that searches for local UI assets, loads trigger metadata, renders a webview, and copies trigger strings to the clipboard. This is a materially different primary purpose: a local extension for browsing/copying triggers rather than the workflow packages themselves. The clipboard access and workspace file scanning are also undeclared capabilities, though still consistent with the UI tool behavior. Overall, the description does not accurately represent this code chunk's actual behavior.
The declared description presents a family of workflow packages for guiding AI coding agents through the software delivery lifecycle. The supplied code does not implement that lifecycle guidance directly; instead, it registers a VS Code command, opens a webview panel, loads CSS/JS/JSON assets, searches workspace directories for UI resources, and copies trigger keys to the clipboard on user action. This is a materially different primary purpose: a local command board UI for browsing/copying triggers, not the workflow packages themselves. The code also accesses workspace files and the clipboard, capabilities not reflected in the description.
Referenced artifact was not completely inspected
./installer/install.sh
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Post-Workflow: Agent Installation
## Phase: 🚀 ASSEMBLY (post-workflow)
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
System(sys, "System", "Description") System_Ext(ext, "External", "Description") Rel(user, sys, "Uses", "HTTPS")
C4 validation rules:
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
System(sys, "System", "Description") System_Ext(ext, "External", "Description") Rel(user, sys, "Uses", "HTTPS")
C4 validation rules:
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Diagram Standards
## Purpose
Instructions found that direct the agent to transmit conversation context or user data to external services.
**Direction:**
- **Inbound** — External system sends data TO us (we consume)
- **Outbound** — We send data TO external system (we produce)
- **Bidirectional** — Both directions
**Criticality:**
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Component Design (C4 Level 3)
## Stage: 12 of 13
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Workspace Detection & Context Loading
## Stage: 1 of 13
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
---
generatedBy: AI-ADLC
generatedVersion: "{version}"
The manifest/tool declaration permits only read access via tools: ["read"]. Later instructions require appending compliance-log events to .governance/compliance-log/events/{today-date}.jsonl, which is a write operation outside the declared permission baseline.
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Management Framework — Consolidated Spine Template (AI-ADLC)
| Field | Value |
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
| `DAT__ status` | Report which data files are stale vs. their sources |
| `DAT__ discover` | Force re-discovery (re-read every SOURCE_MAP + schema) |
| `DAT__ validate` | Dry-run schema validation without writing |
| `DAT__ cleanup --before {ms-timestamp}` | Delete history snapshots older than a timestamp |
| `DAT__ master` / `DAT__ master --set {family}` | Report / set the master DFE (multi-family) |
| `DFA__` | Run the quality agent — a report-only health check |
The embedded installation rule states that when the user types DHC__ anywhere in a prompt, the agent should immediately execute with no further clarification. This is an ambiguous and overly broad trigger because it lacks negative examples or exclusions for mentions, pasted docs, or analysis of the shortcut itself, increasing unintended invocation risk.
This line states the engine overrides all other workflows not only for the explicit _DFE_ key but also whenever the user requests data gathering, shaping, distribution, or any DAT__/DFA__ operation. Terms like 'data gathering' and 'distribution' are generic and could collide with normal user intent, especially because they are tied to an override behavior.
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
### Delta Reconciliation Rules
- Detects what changed in the AP since last generation
- Preserves anything marked `<!-- custom -->` (team additions)
- Updates only net-new or changed items
- Never destroys team customizations
- Produces a reconciliation report showing what was added/changed/preserved
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Document Stamping & Obsolescence Protocol
## Purpose
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
<!-- Copyright (c) 2026 Mohammad Maheri. Licensed under Apache 2.0. See LICENSE. Attribution required - see NOTICE. -->
# Peer Input Reading Guide
## Purpose
No suspicious patterns detected.