- Location
- strategies/Main.md:33
- Finding
- Overbroad Collection of Workspace, Identity, and Session Information<![CDATA[
## Vulnerability Details
**File Location**: `strategies/Main.md:33-101`
**Vulnerability Type**: `T05: Unauthorized Access and Privilege Escalation`
**Risk Level**: High
### Vulnerable Code
```markdown
**Primary Source**: Check for saved snapshot
```
```javascript
GET /memory/snapshots?label=day1-baseline
// If not found, reconstruct from:
- First session timestamp
- Initial configuration logs
- Early skill installations
```
```javascript
{
"day7": {
"timestamp": "[Now]",
"core": {
"model": "[current]",
"configured": true,
"optimized": [check customization]
},
"context": {
"documentCount": [count workspace docs],
"memoryStructure": "[check organization]",
"personalized": [check for user-specific content]
},
"constitution": {
"soulMd": [exists? + completeness],
"userMd": [exists? + completeness],
"agentsMd": [exists? + completeness]
},
"capabilities": {
"botlearnSkills": [count from clawhub list],
"mostUsed": [top 3 with usage],
"skillCombos": [discovered patterns]
},
"tasks": {
"completed": [from session logs],
"successRate": [calculate],
"breakthroughs": [identify]
}
}
}
```
```javascript
{
"sessions": {
"total": [N],
"daysActive": [N],
"requestTypes": { [categorize] },
"skillsUsage": { [count per skill] },
"satisfaction": { [positive/negative feedback] }
}
}
```
### Technical Analysis
The Skill directs the Agent to inspect memory snapshots, configuration logs, workspace documents, personalization content, identity files, installed Skill history, session logs, request categories, task outcomes, and user feedback.
A retrospective can legitimately use selected metrics, but the instructions do not establish per-source authorization, data minimization, content-redaction rules, or a boundary between metadata inspection and reading document contents. In particular, checking whether conten
...[truncated 1633 chars]
- Remediation
- <![CDATA[
## Remediation Suggestions
1. Present a data-source checklist before collection and require explicit approval for each source.
2. Default to user-provided metrics rather than automatic workspace or history inspection.
3. Use counts and metadata instead of document contents whenever possible.
4. Do not read `SOUL.md`, `USER.md`, `AGENTS.md`, session logs, or configuration logs unless the user separately authorizes each source.
5. Restrict retrospective access to a dedicated, user-selected workspace directory.
6. Redact secrets, personal identifiers, private document text, and unrelated session content before analysis.
7. Document why every collected field is necessary and omit fields that do not directly support the requested report.
8. Display collected evidence to the user before calculating scores or archetypes.
9. Ensure that denial of optional data access produces a limited report rather than blocking the Skill.
10. Add tests verifying that the Skill does not infer unavailable metrics or silently broaden its access scope.
]]>