Task Persistence
· v1.1.0
Task continuity, session snapshots, and gateway restart recovery. Use when starting long-running tasks (register them), after gateway restart (check for interrupted tasks), or when user asks about task status/recovery. Trigger on "resume", "任务恢复", "重启后", "未完成任务", or before/after any multi-step operation.
H:4 D:3 A:1 C:1
⚠️ Hazard Flags
EXEC FS_READ_WORKSPACE FS_WRITE_WORKSPACE FS_WRITE_USER FS_DELETE CREDS_ENV
📋 Capabilities
Execution
- ✅ Shell execution
- ❌ Code execution
- ❌ Install dependencies
- ❌ Persistence
- Privilege: user
Filesystem
- ✅ Read workspace
- ✅ Write workspace
- ❌ Read home
- ✅ Write home
- ❌ Read system
- ✅ Delete
Network
- Egress: none
- ❌ Ingress
Credentials
- ✅ Environment vars
- ❌ Credential files
- ❌ Browser data
- ❌ Keychain
Actions
❌ send messages❌ post public❌ purchase❌ transfer money❌ deploy❌ delete external
🔒 Containment
Level: maximum
Required:
- SANDBOX_CONTAINER: Code execution capability
Recommended:
- LOG_ACTIONS: Audit trail for all actions
⚡ Risks
Command injection risk: MCP_SQL_BLIND high
Mitigation: Remove SQL exploitation patterns.
Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION low
Mitigation: Provide clear, detailed description of skill functionality
Want a deeper analysis?
This report was generated by static analysis. Get an LLM-powered deep review with behavioral reasoning and attack surface mapping.
🧠 Deep Analysis — $5.00🚨 Incident Response
Kill switch: Stop the agent process
Containment: Review logs for unexpected actions
Recovery: Depends on skill capabilities
📄 Raw SSDS JSON click to expand
{
"meta": {
"document_id": "ssds:auto:task-persistence:1.1.0",
"ssds_version": "0.2.0",
"scanner_version": "0.4.0+fe6fd9123d50",
"created_at": "2026-03-05T15:57:56.642Z",
"created_by": {
"agent": "safeagentskills-cli/generate-ssds"
},
"language": "en",
"notes": "Auto-generated SSDS. Manual review recommended."
},
"skill": {
"name": "Task Persistence",
"version": "1.1.0",
"format": "agent_skill",
"description": "Task continuity, session snapshots, and gateway restart recovery. Use when starting long-running tasks (register them), after gateway restart (check for interrupted tasks), or when user asks about task status/recovery. Trigger on \"resume\", \"任务恢复\", \"重启后\", \"未完成任务\", or before/after any multi-step operation.",
"publisher": "unknown",
"source": {
"channel": "local"
},
"artifact": {
"sha256": "794217fb6579082d7a1f5a522bb1c1386d6d5173e01e3e80db146c5e096ec1f6",
"hash_method": "files_sorted"
}
},
"capabilities": {
"execution": {
"can_exec_shell": true,
"can_exec_code": false,
"privilege_level": "user",
"can_install_deps": false,
"can_persist": false
},
"filesystem": {
"reads_workspace": true,
"reads_user_home": false,
"reads_system": false,
"writes_workspace": true,
"writes_user_home": true,
"writes_system": false,
"can_delete": true
},
"network": {
"egress": "none",
"ingress": false
},
"credentials": {
"reads_env_vars": true,
"reads_credential_files": false,
"reads_browser_data": false,
"reads_keychain": false
},
"services": [],
"actions": {
"can_send_messages": false,
"can_post_public": false,
"can_purchase": false,
"can_transfer_money": false,
"can_deploy": false,
"can_delete_external": false
},
"prompt_injection_surfaces": [],
"content_types": [
"general"
]
},
"hazards": {
"hdac": {
"H": 4,
"D": 3,
"A": 1,
"C": 1
},
"flags": [
"EXEC",
"FS_READ_WORKSPACE",
"FS_WRITE_WORKSPACE",
"FS_WRITE_USER",
"FS_DELETE",
"CREDS_ENV"
],
"custom_flags": [
{
"code": "FILE_DELETE",
"name": "File Deletion",
"description": "Can delete files in: dist/scripts/session_snapshot.py, dist/scripts/task_queue.py, scripts/session_snapshot.py, scripts/task_queue.py"
},
{
"code": "SOCIAL_ENGINEERING",
"name": "Social Engineering Risk",
"description": "SOCIAL_ENG_VAGUE_DESCRIPTION: Skill description is too vague or missing"
},
{
"code": "COMMAND_INJECTION",
"name": "Command Injection Risk",
"description": "MCP_SQL_BLIND: Blind SQL injection, system table access, or stored procedure abuse"
}
],
"confidence": {
"level": "medium",
"basis": [
"static_analysis"
],
"notes": "Detected 3 security patterns (4 vendored rule hits). Review recommended."
},
"rationale": {
"H": "H4: Critical: Privilege escalation or malware detected",
"D": "D3: Credential access detected",
"A": "A1: Local side effects only",
"C": "C1: General content"
}
},
"containment": {
"level": "maximum",
"required": [
{
"control": "SANDBOX_CONTAINER",
"reason": "Code execution capability"
}
],
"recommended": [
{
"control": "LOG_ACTIONS",
"reason": "Audit trail for all actions"
}
],
"uncontained_risk": "Risk level depends on manual review of actual capabilities."
},
"risks": {
"risks": [
{
"risk": "Command injection risk: MCP_SQL_BLIND",
"severity": "high",
"mitigation": "Remove SQL exploitation patterns."
},
{
"risk": "Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION",
"severity": "low",
"mitigation": "Provide clear, detailed description of skill functionality"
}
],
"limitations": [
"Static analysis only - runtime behavior not verified"
]
},
"incident_response": {
"kill_switch": [
"Stop the agent process"
],
"containment": [
"Review logs for unexpected actions"
],
"recovery": [
"Depends on skill capabilities"
]
},
"evidence": [
{
"evidence_id": "EV:file-1",
"type": "file_excerpt",
"title": "_meta.json",
"file_path": "_meta.json"
},
{
"evidence_id": "EV:file-2",
"type": "file_excerpt",
"title": "dist/scripts/__init__.py",
"file_path": "dist/scripts/__init__.py"
},
{
"evidence_id": "EV:file-3",
"type": "file_excerpt",
"title": "dist/scripts/gateway_monitor.py",
"file_path": "dist/scripts/gateway_monitor.py"
},
{
"evidence_id": "EV:file-4",
"type": "file_excerpt",
"title": "dist/scripts/session_snapshot.py",
"file_path": "dist/scripts/session_snapshot.py"
},
{
"evidence_id": "EV:file-5",
"type": "file_excerpt",
"title": "dist/scripts/task_persistence.py",
"file_path": "dist/scripts/task_persistence.py"
},
{
"evidence_id": "EV:file-6",
"type": "file_excerpt",
"title": "dist/scripts/task_queue.py",
"file_path": "dist/scripts/task_queue.py"
},
{
"evidence_id": "EV:file-7",
"type": "file_excerpt",
"title": "dist/SKILL.md",
"file_path": "dist/SKILL.md"
},
{
"evidence_id": "EV:file-8",
"type": "file_excerpt",
"title": "scripts/__init__.py",
"file_path": "scripts/__init__.py"
},
{
"evidence_id": "EV:file-9",
"type": "file_excerpt",
"title": "scripts/gateway_monitor.py",
"file_path": "scripts/gateway_monitor.py"
},
{
"evidence_id": "EV:file-10",
"type": "file_excerpt",
"title": "scripts/main.py",
"file_path": "scripts/main.py"
},
{
"evidence_id": "EV:cisco-1",
"type": "file_excerpt",
"title": "MCP_SQL_BLIND [HIGH] dist/scripts/gateway_monitor.py:116: time.sleep(10) # 每10秒检查一次",
"file_path": "dist/scripts/gateway_monitor.py"
},
{
"evidence_id": "EV:cisco-2",
"type": "file_excerpt",
"title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] dist/SKILL.md:1: ---",
"file_path": "dist/SKILL.md"
},
{
"evidence_id": "EV:cisco-3",
"type": "file_excerpt",
"title": "MCP_SQL_BLIND [HIGH] scripts/gateway_monitor.py:116: time.sleep(10) # 每10秒检查一次",
"file_path": "scripts/gateway_monitor.py"
},
{
"evidence_id": "EV:cisco-4",
"type": "file_excerpt",
"title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] SKILL.md:1: ---",
"file_path": "SKILL.md"
}
]
}