🛡️ SafeAgentSkills

Ollama Updater

· v1.0.1

High Risk

Ollama 安装工具 - 支持断点续传,解决网络不稳定导致的下载中断问题

H:4 D:4 A:0 C:1

⚠️ Hazard Flags

EXEC PRIVILEGED PERSISTENCE FS_READ_USER FS_DELETE NET_EGRESS_ANY CREDS_KEYCHAIN PI_WEB

📋 Capabilities

Execution

  • ✅ Shell execution
  • ❌ Code execution
  • ❌ Install dependencies
  • ✅ Persistence
  • Privilege: admin

Filesystem

  • ❌ Read workspace
  • ❌ Write workspace
  • ✅ Read home
  • ❌ Write home
  • ❌ Read system
  • ✅ Delete

Network

  • Egress: any
  • ❌ 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

Pipe-to-shell pattern detected (curl|bash) in: README.md critical

Mitigation: Do not execute. Review source for malicious intent.

Keychain/credential store access in: ollama-install.sh high

Mitigation: Block keychain access or use isolated environment.

Unauthorized tool use: TOOL_ABUSE_SYSTEM_PACKAGE_INSTALL, MCP_SYS_FILE_DESTRUCTION, MCP_SYS_CRITICAL_ACCESS, MCP_SYS_PRIVILEGE_ESCALATION, INSTRUCTED_BINARY_INSTALL critical

Mitigation: Use user-level installs without sudo

Command injection risk: COMMAND_INJECTION_USER_INPUT, TIRITH_INSECURE_TLS high

Mitigation: Validate and sanitize all user inputs before using in commands

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:ollama-updater:1.0.1",
    "ssds_version": "0.2.0",
    "scanner_version": "0.4.0+fe6fd9123d50",
    "created_at": "2026-03-05T14:10:12.806Z",
    "created_by": {
      "agent": "safeagentskills-cli/generate-ssds"
    },
    "language": "en",
    "notes": "Auto-generated SSDS. Manual review recommended."
  },
  "skill": {
    "name": "Ollama Updater",
    "version": "1.0.1",
    "format": "agent_skill",
    "description": "Ollama 安装工具 - 支持断点续传,解决网络不稳定导致的下载中断问题",
    "publisher": "unknown",
    "source": {
      "channel": "local"
    },
    "artifact": {
      "sha256": "08586b17e9876b3c4c29d57f2ecb5a7161622a527819821a6fe5f084a974cf33",
      "hash_method": "files_sorted"
    }
  },
  "capabilities": {
    "execution": {
      "can_exec_shell": true,
      "can_exec_code": false,
      "privilege_level": "admin",
      "can_install_deps": false,
      "can_persist": true
    },
    "filesystem": {
      "reads_workspace": false,
      "reads_user_home": true,
      "reads_system": false,
      "writes_workspace": false,
      "writes_user_home": false,
      "writes_system": false,
      "can_delete": true
    },
    "network": {
      "egress": "any",
      "ingress": false
    },
    "credentials": {
      "reads_env_vars": false,
      "reads_credential_files": false,
      "reads_browser_data": false,
      "reads_keychain": true
    },
    "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": [
      "web"
    ],
    "content_types": [
      "general"
    ]
  },
  "hazards": {
    "hdac": {
      "H": 4,
      "D": 4,
      "A": 0,
      "C": 1
    },
    "flags": [
      "EXEC",
      "PRIVILEGED",
      "PERSISTENCE",
      "FS_READ_USER",
      "FS_DELETE",
      "NET_EGRESS_ANY",
      "CREDS_KEYCHAIN",
      "PI_WEB"
    ],
    "custom_flags": [
      {
        "code": "PIPE_TO_SHELL",
        "name": "Pipe to Shell",
        "description": "Downloads and executes remote code (curl|bash pattern) in: README.md"
      },
      {
        "code": "CRED_KEYCHAIN",
        "name": "Keychain Access",
        "description": "Accesses system keychain in: ollama-install.sh"
      },
      {
        "code": "PERSISTENCE",
        "name": "Persistence Mechanism",
        "description": "Creates scheduled tasks or startup entries in: ollama-install.sh"
      },
      {
        "code": "PRIVILEGE_ESCALATION",
        "name": "Privilege Escalation",
        "description": "Uses elevated privileges (sudo/root) in: ollama-install.sh, README.md, SKILL.md"
      },
      {
        "code": "FILE_DELETE",
        "name": "File Deletion",
        "description": "Can delete files in: ollama-install.sh"
      },
      {
        "code": "TOOL_ABUSE",
        "name": "Unauthorized Tool Use",
        "description": "TOOL_ABUSE_SYSTEM_PACKAGE_INSTALL, MCP_SYS_FILE_DESTRUCTION, MCP_SYS_CRITICAL_ACCESS, MCP_SYS_PRIVILEGE_ESCALATION, INSTRUCTED_BINARY_INSTALL: Attempting to install system packages with elevated privileges"
      },
      {
        "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": "COMMAND_INJECTION_USER_INPUT, TIRITH_INSECURE_TLS: User input used in command substitution - potential injection risk"
      }
    ],
    "confidence": {
      "level": "medium",
      "basis": [
        "static_analysis"
      ],
      "notes": "Detected 8 security patterns (10 vendored rule hits). Review recommended."
    },
    "rationale": {
      "H": "H4: Critical: Privilege escalation or malware detected",
      "D": "D4: Critical: Credential theft or data exfiltration",
      "A": "A0: No side effects detected",
      "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": "Pipe-to-shell pattern detected (curl|bash) in: README.md",
        "severity": "critical",
        "mitigation": "Do not execute. Review source for malicious intent."
      },
      {
        "risk": "Keychain/credential store access in: ollama-install.sh",
        "severity": "high",
        "mitigation": "Block keychain access or use isolated environment."
      },
      {
        "risk": "Unauthorized tool use: TOOL_ABUSE_SYSTEM_PACKAGE_INSTALL, MCP_SYS_FILE_DESTRUCTION, MCP_SYS_CRITICAL_ACCESS, MCP_SYS_PRIVILEGE_ESCALATION, INSTRUCTED_BINARY_INSTALL",
        "severity": "critical",
        "mitigation": "Use user-level installs without sudo"
      },
      {
        "risk": "Command injection risk: COMMAND_INJECTION_USER_INPUT, TIRITH_INSECURE_TLS",
        "severity": "high",
        "mitigation": "Validate and sanitize all user inputs before using in commands"
      },
      {
        "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": "ollama-install.sh",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:file-2",
      "type": "file_excerpt",
      "title": "package.json",
      "file_path": "package.json"
    },
    {
      "evidence_id": "EV:file-3",
      "type": "file_excerpt",
      "title": "README.md",
      "file_path": "README.md"
    },
    {
      "evidence_id": "EV:file-4",
      "type": "file_excerpt",
      "title": "SKILL.md",
      "file_path": "SKILL.md"
    },
    {
      "evidence_id": "EV:file-5",
      "type": "file_excerpt",
      "title": "_meta.json",
      "file_path": "_meta.json"
    },
    {
      "evidence_id": "EV:cisco-1",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_USER_INPUT [MEDIUM] ollama-install.sh:457: NVIDIA_CUDA_VERSION=$($SUDO dkms status | awk -F: '/added/ { print $1 }')",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:cisco-2",
      "type": "file_excerpt",
      "title": "TOOL_ABUSE_SYSTEM_PACKAGE_INSTALL [MEDIUM] ollama-install.sh:169: - Debian/Ubuntu: sudo apt-get install zstd",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:cisco-3",
      "type": "file_excerpt",
      "title": "MCP_SYS_FILE_DESTRUCTION [CRITICAL] ollama-install.sh:17: cleanup() { rm -rf $TEMP_DIR; }",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:cisco-4",
      "type": "file_excerpt",
      "title": "MCP_SYS_CRITICAL_ACCESS [HIGH] ollama-install.sh:1: #!/bin/sh",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:cisco-5",
      "type": "file_excerpt",
      "title": "MCP_SYS_PRIVILEGE_ESCALATION [CRITICAL] ollama-install.sh:82: sudo ln -sf \"/Applications/Ollama.app/Contents/Resources/ollama\" \"/usr/local/bin",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:cisco-6",
      "type": "file_excerpt",
      "title": "TIRITH_INSECURE_TLS [HIGH] ollama-install.sh:392: curl -fsSL -o $TEMP_DIR/cuda-keyring.deb https://developer.download.nvidia.com/c",
      "file_path": "ollama-install.sh"
    },
    {
      "evidence_id": "EV:cisco-7",
      "type": "file_excerpt",
      "title": "TOOL_ABUSE_SYSTEM_PACKAGE_INSTALL [MEDIUM] README.md:176: sudo apt-get install zstd",
      "file_path": "README.md"
    },
    {
      "evidence_id": "EV:cisco-8",
      "type": "file_excerpt",
      "title": "INSTRUCTED_BINARY_INSTALL [HIGH] README.md:15: $ curl -fsSL https://ollama.com/install.sh | sh",
      "file_path": "README.md"
    },
    {
      "evidence_id": "EV:cisco-9",
      "type": "file_excerpt",
      "title": "TOOL_ABUSE_SYSTEM_PACKAGE_INSTALL [MEDIUM] SKILL.md:79: sudo apt-get install zstd",
      "file_path": "SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-10",
      "type": "file_excerpt",
      "title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] SKILL.md:1: # ollama-updater",
      "file_path": "SKILL.md"
    }
  ]
}