Back to skill

Security audit

Keychain Access

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed macOS Keychain helper for user-directed credential listing, reading, storing, and deletion, with no hidden network, persistence, or unrelated behavior found.

Install only if you intentionally want an agent to help manage macOS Keychain entries. Use service/account filters, avoid broad list operations on the default search list, and allow --raw or --yes only for requests you have explicitly approved.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (68)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 1)May include surrounding context.

md
# Keychain Access Skill

## Purpose
Manage macOS Keychain generic passwords through the bundled `keychain-access.sh` helper. The script wraps the native `security` CLI, enforces confirmations for changes, masks secrets by default, and exposes dry-run previews so other agents or users can safely inspect or adjust stored credentials.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 12)May include surrounding context.

md
# Keychain Access Skill

## Purpose
Manage macOS Keychain generic passwords through the bundled `keychain-access.sh` helper. The script wraps the native `security` CLI, enforces confirmations for changes, masks secrets by default, and exposes dry-run previews so other agents or users can safely inspect or adjust stored credentials.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 10)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 18)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 24)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 30)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 36)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 28)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 29)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 37)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 38)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 47)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 56)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 57)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 73)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 74)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 75)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 77)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 78)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 83)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 101)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 106)May include surrounding context.

  1. Clone or pull this repository and ensure the helper is executable:
    bash
    cd <repo-root>
    chmod +x keychain-access.sh
    
  2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (list, get, set, delete).
  3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and --dry-run when you only want to preview the underlying security command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · keychain-access.sh (reported line 25)May include surrounding context.

sh
1. Clone or pull this repository and ensure the helper is executable:
   ```bash
   cd <repo-root>
   chmod +x keychain-access.sh
   ```
2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (`list`, `get`, `set`, `delete`).
3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and `--dry-run` when you only want to preview the underlying `security` command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · keychain-access.sh (reported line 26)May include surrounding context.

sh
1. Clone or pull this repository and ensure the helper is executable:
   ```bash
   cd <repo-root>
   chmod +x keychain-access.sh
   ```
2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (`list`, `get`, `set`, `delete`).
3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and `--dry-run` when you only want to preview the underlying `security` command.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · keychain-access.sh (reported line 27)May include surrounding context.

sh
1. Clone or pull this repository and ensure the helper is executable:
   ```bash
   cd <repo-root>
   chmod +x keychain-access.sh
   ```
2. Run the script directly from the repository (or add it to your PATH) with one of the supported verbs (`list`, `get`, `set`, `delete`).
3. Provide all required filters (service and account) and, for mutations, a secure password input method, confirmation flags, and `--dry-run` when you only want to preview the underlying `security` command.