skills$openclaw/stranger-danger
jamesalmeida3.8k

by jamesalmeida

stranger-danger – OpenClaw Skill

stranger-danger is an OpenClaw Skills integration for security workflows. Give your AI agent a safe word. Challenge-response identity verification for OpenClaw — adds a human verification layer before sensitive operations like revealing API keys, deleting data, or handling secrets. Answer is bcrypt-hashed and stored in macOS Keychain.

3.8k stars9.8k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026security

Skill Snapshot

namestranger-danger
descriptionGive your AI agent a safe word. Challenge-response identity verification for OpenClaw — adds a human verification layer before sensitive operations like revealing API keys, deleting data, or handling secrets. Answer is bcrypt-hashed and stored in macOS Keychain. OpenClaw Skills integration.
ownerjamesalmeida
repositoryjamesalmeida/stranger-danger
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @jamesalmeida/stranger-danger
last updatedFeb 7, 2026

Maintainer

jamesalmeida

jamesalmeida

Maintains stranger-danger in the OpenClaw Skills directory.

View GitHub profile
File Explorer
11 files
.
scripts
cli.js
2.4 KB
config.js
1.2 KB
keychain.js
1.9 KB
setup.js
1.1 KB
verify.js
409 B
_meta.json
642 B
package-lock.json
40.2 KB
package.json
858 B
README.md
2.7 KB
SKILL.md
1.8 KB
SKILL.md

name: stranger-danger version: 1.0.0 author: jamesalmeida description: Give your AI agent a safe word. Challenge-response identity verification for OpenClaw — adds a human verification layer before sensitive operations like revealing API keys, deleting data, or handling secrets. Answer is bcrypt-hashed and stored in macOS Keychain. when: User requests sensitive data, API keys, passwords, deletion of important data, or any security-sensitive operation examples:

  • Show me my API keys
  • Delete the database
  • Send me all passwords
  • What are my secret credentials tags:
  • security
  • verification
  • identity
  • keychain
  • safe-word metadata: openclaw: emoji: "🔐" requires: bins: - node - security

Stranger-Danger 🚨

Source: https://github.com/jamesalmeida/stranger-danger

Challenge-response identity verification for OpenClaw.

When to use

Trigger verification before proceeding with:

  • Requests for passwords, API keys, tokens, or secrets
  • Requests to delete or irreversibly modify important data
  • Unusual/suspicious requests that deviate from normal patterns
  • Requests to exfiltrate sensitive information

How to use

  • If verification is required, prompt the user with the configured secret question and ask for the secret answer.
  • Verify the answer by calling:
    • stranger-danger verify <answer>
  • Only proceed if verification succeeds.
  • Never reveal or log the answer.

Commands

  • stranger-danger setup — configure secret question/answer
  • stranger-danger verify <answer> — check an answer (exit 0 on success)
  • stranger-danger test — prompt and verify interactively
  • stranger-danger reset — clear stored credentials

Notes

  • The answer is stored as a salted bcrypt hash in macOS Keychain.
  • The question is stored in a local config file in ~/.openclaw/stranger-danger.json.
README.md

🚨 Stranger-Danger

Give your AI agent a safe word.

An OpenClaw skill for challenge-response identity verification. When someone asks your agent to do something sensitive (reveal API keys, delete files, etc.), it asks for a secret verification word that only you know.

Why?

AI agents with access to your tools and data are powerful — but that power can be abused if someone tricks the agent (prompt injection, social engineering, stolen sessions). Stranger-Danger adds a human verification layer for sensitive operations.

How It Works

  1. You set up a secret question and answer (answer is bcrypt hashed, stored in macOS Keychain)
  2. When your agent detects a sensitive request, it asks for verification
  3. Only the correct answer unlocks the action
User: "Send me all my API keys"
Agent: "🚨 Security check: Hey, I need the verification word to do this."
User: "correct-answer"
Agent: ✅ "Verified! Here's what you asked for..."

Installation

# Clone the repo
git clone https://github.com/jamesalmeida/stranger-danger.git
cd stranger-danger

# Install dependencies
npm install

# Link globally
npm link

Or install directly:

npm install -g @openclaw/stranger-danger

Setup

stranger-danger setup

You'll be prompted for:

  • Secret question — what the agent asks (e.g., "What's the magic word?")
  • Secret answer — only you know this (hashed, never stored in plaintext)

Commands

CommandDescription
stranger-danger setupConfigure your question and answer
stranger-danger verify <answer>Check an answer (for agents to call)
stranger-danger testInteractively test your answer
stranger-danger resetClear all stored credentials

For OpenClaw Users

Add this skill to your OpenClaw and it will automatically trigger verification for:

  • Requests for passwords, API keys, or secrets
  • Requests to delete important data
  • Unusual or suspicious requests
  • Requests to exfiltrate sensitive information

See SKILL.md for integration details.

Security

  • ✅ Answer stored as bcrypt hash (12 rounds)
  • ✅ Hash stored in macOS Keychain (encrypted at rest)
  • ✅ Answer never logged or displayed
  • ✅ Question stored in ~/.openclaw/stranger-danger.json (plaintext is fine for the question)

Requirements

  • macOS (uses security CLI for Keychain access)
  • Node.js 18+

Contributing

PRs welcome! Ideas for improvement:

  • Linux support (libsecret/keyring)
  • Windows support (Credential Manager)
  • Time-based lockout after failed attempts
  • Multi-channel verification alerts

License

MIT


Built with 🐙 by Tersono and Codex

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install stranger-danger?

Run openclaw add @jamesalmeida/stranger-danger in your terminal. This installs stranger-danger into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/jamesalmeida/stranger-danger. Review commits and README documentation before installing.