Back to skill

Security audit

project-retrospective

Security checks for vulnerabilities and agentic risk

Overview

This retrospective skill is purpose-aligned, but it directs broad reading of memory, session history, workspace files, configs, data, and git history without clear consent or redaction controls.

Install only if you are comfortable letting the agent read prior project memory, session logs, workspace files, and git history for the active project. Before using it, ask the agent to list sources first, avoid secrets and unrelated files, produce a draft for review, and get explicit approval before writing the report or updating memory.

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:34
Finding

Unscoped Access to Persistent Agent Memory and Project History

Content
View full analysis
/project_memory.md /Users/shiyan/.trae-cn/memory/projects///topics.md ``` Extract: hard constraints, engineering conventions, lessons learned, topic summaries with timestamps. 2. **Session memory files** — Read `session_memory_*.jsonl` files for detailed task-level history: ``` /Users/shiyan/.trae-cn/memory/projects///session_memory_*.jsonl ``` Extract: specific tasks, TODOs, related files, decisions made. 3. **Workspace files** — List and inspect key files in the workspace: - Scripts, configs, data files (check modification times for chronology) - Existing documentation or analysis reports - Git log if a repository exists (`git log --oneline --stat`) ``` ### Technical Analysis The Skill directs the agent to collect information from persistent agent memory, detailed session transcripts, workspace files, and Git history. These sources can contain confidential conversations, credentials, internal file paths, proprietary project data, or information unrelated to the retrospective. The collection procedure lacks the following least-privilege controls: - Explicit user authorization before persistent memory or transcript access. - Validation that resolved memory paths belong to the active project. - Protection against cross-user access caused by the hard-coded `/Users/shiyan/` path. - An allowlist limiting which files and history entries may be inspected. - Exclusion and redaction rules for credentials, tokens, personal information, and unrelated project cont ...[truncated 2085 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (7)

Ssd 3

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly directs mining prior conversation history, memory files, and artifacts to reconstruct a narrative. Without strict minimization and consent boundaries, it may surface sensitive details from prior sessions that the user did not intend to restate, aggregate, or persist in a new document.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The workflow instructs collection from 'all available sources,' including memory files, session logs, workspace files, and git history. This broad harvesting materially increases the chance of over-collection, cross-context disclosure, and inclusion of credentials, internal notes, or unrelated project details in the retrospective output.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The document template, examples, writing rules, and output filename are all prescribed in Chinese, effectively forcing a specific language for the generated retrospective. There is no indication that the user can choose the output language or that the locale restriction is required for a region-specific purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill extends beyond passive retrospective analysis into updating persistent memory and creating additional durable artifacts. That increases the action scope from summarization to modifying long-lived state, which can preserve incorrect, sensitive, or over-collected information without explicit user confirmation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill instructs saving a file into the workspace as a default output without requiring a confirmation step. Automatic file creation can overwrite user expectations, introduce sensitive synthesized content into the project tree, and create persistent artifacts from private conversation history.

Content

No source excerpt is available for this finding.

Ssd 3

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

A first-person, full-process narrative can amplify privacy risk by rephrasing sensitive motivations, mistakes, and historical actions into a highly readable document. While the template itself is not exfiltration, it can normalize reproducing private details from logs and memory into a shareable artifact.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The stated purpose is to review projects and extract reusable lessons. Suggesting creation of a new Skill based on lessons learned introduces capability expansion into agent/skill design guidance, which is not necessary for performing a project retrospective itself.

Content

No source excerpt is available for this finding.