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
Content
# 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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
# 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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Credential Access

High
Category
Privilege Escalation
Content
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.
Confidence
70% confidence
Finding
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Static analysis

No suspicious patterns detected.