credential-handling

credential-handling is a cursor rule for Cursor from chambear2809/splunk-cisco-skills. It costs 616 tokens per session, scanned B, original, Apache-2.0.

A security policy for handling passwords, API keys, tokens, and other credentials in Splunk-related agent workflows.

In plain words
What is it for?
Use it to store credentials in protected files and guide setup when Splunk or other product access is required.
Why use it?
It prevents secrets from being requested in chat or exposed in command arguments and environment variables.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash skills/shared/scripts/setup_credentials.sh.

Good fit Use it to store credentials in protected files and guide setup when Splunk or other product access is required.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/chambear2809/splunk-cisco-skills
agentmods
npx agentmods add rules/chambear2809/splunk-cisco-skills/credential-handling

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for credential-handling

README.md
[![agentmods](https://agentmods.dev/badge/rules/chambear2809/splunk-cisco-skills/credential-handling/github.svg)](https://agentmods.dev/rules/chambear2809/splunk-cisco-skills/credential-handling)
Your own site
<a href="https://agentmods.dev/rules/chambear2809/splunk-cisco-skills/credential-handling"><img src="https://agentmods.dev/badge/rules/chambear2809/splunk-cisco-skills/credential-handling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for credential-handling

Your own site · 80×15
<a href="https://agentmods.dev/rules/chambear2809/splunk-cisco-skills/credential-handling"><img src="https://agentmods.dev/badge/rules/chambear2809/splunk-cisco-skills/credential-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 616 This file is loaded in full into every session.
When invoked 616 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00616 $0.00616
Opus 5 $0.00308 $0.00308
Sonnet 5 $0.00123 $0.00123
Haiku 4.5 $0.00062 $0.00062

Measured 5d ago against content hash cf3995b19e07, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

credential-handling scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

(chmod 600, gitignored) and read automatically by all skill scripts via the
rules/credential-handling.mdc · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secure Credential Handling

Agent Rules

  1. NEVER ask the user for passwords, API keys, tokens, client secrets, or any other secret in conversation. This includes Splunk credentials, device passwords, Meraki API keys, Intersight client secrets, Splunkbase passwords, and any other sensitive value.

  2. NEVER pass SPLUNK_USER, SPLUNK_PASS, SB_USER, SB_PASS, or any secret as an environment variable prefix in shell commands. For example, do NOT run: SPLUNK_PASS="secret" bash script.sh

  3. NEVER pass secrets as command-line arguments (e.g., --password mysecret). Use file-based alternatives instead (--password-file /path/to/file).

  4. Splunk credentials are stored in the project-root credentials file (chmod 600, gitignored) and read automatically by all skill scripts via the shared credential helper library at skills/shared/lib/credential_helpers.sh. The library also falls back to ~/.splunk/credentials if the project file does not exist.

  5. If Splunk credentials are not yet configured, guide the user to run:

    bash skills/shared/scripts/setup_credentials.sh
    

    Or copy and edit the example:

    cp credentials.example credentials && chmod 600 credentials
    
  6. Device credentials (device passwords, API keys, client secrets) should be handled by instructing the user to create a temporary file without putting the secret in shell history:

    bash skills/shared/scripts/write_secret_file.sh /tmp/secret_file
    

    Then pass the file path to the script (e.g., --password-file /tmp/secret_file). Instruct the user to delete the file after use.

  7. You MAY freely ask for non-secret values: account names, hostnames, IP addresses, regions, index names, organization IDs, client IDs, and other configuration values that are not credentials.

Script Patterns

All scripts under skills/ source the shared library via a relative path:

source "${SCRIPT_DIR}/../../shared/lib/credential_helpers.sh"

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 64 lines · 616 tokens per session scan B cf3995b19e07

Subscribe to this mod's changes

credential-handling is a cursor rule published in the GitHub repository chambear2809/splunk-cisco-skills (37 stars, last pushed 4d ago), licensed Apache-2.0. It adds 616 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.