Scan your whole stack
Are you using vibe-trap?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.3.0
vibe-trap was last scanned on 30 Oct 2026 at version 1.3.0. Risk score 85 of 100 (high). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 1.3.0 LATEST | 30 Oct 2026 | 1 rule fired |
| 1.2.0 | 29 Oct 2026 | 1 rule fired |
| 1.1.0 | 29 Oct 2026 | 1 rule fired |
| 1.0.0 | 28 Oct 2026 | Not shown |
Findings for v1.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The package ships a compiled executable and starts it automatically: from code that runs as soon as the package is loaded, from an install script, or by launching an executable it finds in its own directory. Compiled code cannot be reviewed as source. Packages that wrap a binary usually start it only when the application calls them.
HIGHThe score describes 1.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
macOS AFK Anti-Tamper & Jumpscare Utility\ Keeping your MacBook screen awake, watching for unauthorized hands, and springing the ultimate trap.
Built for the DEV Hacktoberfest 2026 Week 4 Challenge: Ghost in the Machine.
When you're vibe coding with autonomous agents, long builds, downloads, and model generations mean you always run caffeinate to keep your MacBook awake while stepping away. But an unattended, awake laptop invites snooping coworkers or friends to touch your trackpad or browse your terminal history.
vibe-trap is a lightweight macOS AFK security trap that:
caffeinate.afplay.vibetrap), the trap silently disarms and exits safely.npxZero setup, no Python environment, and no manual dependency installation required. Just run:
caffeinate -d npx vibe-trap
(Or simply npx vibe-trap)
Because vibe-trap monitors global input events across macOS (even when running in the background while other applications are in focus), macOS requires two privacy permissions:
> System Settings...).[!NOTE] If run without permissions,
vibe-trapprints a reminder notice. If macOS prompts you with an access dialog, click "Open System Settings" and enable the toggle.
Execute with caffeinate -d to keep your MacBook display awake while armed:
caffeinate -d npx vibe-trap
By default, vibe-trap provides a 5-second countdown (⏳ Arming in 5s...), giving you time to release your mouse and step away. Pressing Ctrl+C during the countdown aborts cleanly. Customize the countdown using --countdown <sec> (or -c 0 to arm instantly).
[!TIP] Keep Awake with Lid Closed (Clamshell Mode):\ By default, closing your MacBook lid puts macOS to sleep immediately. To keep background processes running even with the lid shut:
# Prevent sleep when closing lid: sudo pmset -a disablesleep 1 # Restore default sleep behavior afterwards: sudo pmset -a disablesleep 0
When you return to your computer, simply type the secret password on your keyboard:
vibetrap
The trap silently checks each keystroke prefix. Once the complete password is typed:
[✓] PASSWORD VERIFIED ('vibetrap')! Vibe Trap disarmed.
[✓] Welcome back. Exiting safely.
The trap disarms and cleanly terminates without triggering any alarms or locking your screen.
--anti-theft)Stepping away from your table at a coffee shop, library, or co-working lounge? Standard vibe-trap watches for mouse clicks and keyboard tampering, but opportunistic thieves often grab the machine without touching the trackpad.
Enabling --anti-theft (or -T) activates a Tri-Vector Hardware Protection Suite:
# Multi-vector protection (AC power disconnect + lid closure):
caffeinate -d npx vibe-trap --anti-theft
# With root privileges to unlock Apple Silicon hardware IMU accelerometer & gyro:
sudo caffeinate -d npx vibe-trap --anti-theft --sensitivity high
AppleSPUHIDDevice) hidden inside Apple Silicon MacBooks (M1–M4) via low-level IOKit HID callbacks at 800Hz.vibe-trap samples and establishes a resting gravity baseline vector ($g$). This filters out subtle table nudges and heavy coffee mugs while immediately detecting if someone lifts, slides, or tilts your MacBook.sudo. If run as a standard user, vibe-trap gracefully continues with AC Power and Lid sensors active and displays a helpful tip in the terminal.IOPowerSources)IOPSNotificationCreateRunLoopSource callbacks with zero polling latency.AppleClamshellState)AppleClamshellState from IOPMrootDomain and hooks NSWorkspace.willSleepNotification.Configure motion detection sensitivity with --sensitivity <level> (or -s):
| Sensitivity | Threshold ($\Delta g$) | Best Used For |
|---|---|---|
low |
0.45g |
Noisy environments, communal benches, or wobbly cafe tables. Triggers only on significant physical lifts or moves. |
medium (default) |
0.25g |
Balanced default. Ignores coffee cups and typing while catching any deliberate lift, slide, or tilt. |
high |
0.12g |
Maximum security. Triggers on any slight nudge, shift, or tilt. |
If an intruder touches your laptop:
a, admin, or pressing Space, Enter, Shift, Backspace) triggers the trap immediately.When triggered, vibe-trap engages Persistent Kiosk Lockout:
.screenSaver level) across all desktop spaces.vibetrap) blindly anywhere on the keyboard. A continuous sliding-window validator detects the sequence, immediately kills the audio, restores your original volume, closes the window, and restores normal desktop access.Ctrl+C, Ctrl+\, Ctrl+D, SIGINT, SIGTERM, SIGHUP) is caught instantly and triggers immediate workstation lock down (SACLockScreenImmediate() + pmset displaysleepnow).--timeout <ms> flag is also available if you prefer auto-sleeping the screen after a set duration.vibe-trap dynamically pairs and randomizes payload assets found in the assets/ folder:
assets/
├── scream.webp & scream.mp3 # Ghostface with knife + piercing scream
├── smile.webp & smile.mp3 # Creepy smiling face + eerie echoing laughter
└── zombie.jpeg & zombie.mp3 # Hallway crawler ghoul + jumpscare roar
Whenever triggered, it picks a random matching image and audio pair from assets/. You can drop any custom meme or horror pair (.png, .jpg, .webp, .wav, .mp3) into assets/!
| Flag | Description | Default |
|---|---|---|
--countdown, -c |
Grace period in seconds before arming sensors | 5 (or $VIBE_TRAP_COUNTDOWN) |
--password, -p |
Set a custom disarm password | vibetrap (or $VIBE_TRAP_PASSWORD) |
--timeout, -t |
Optional auto-lock timeout in milliseconds | Persistent until disarmed |
--image, -i |
Override with a specific image file | Auto / Assets |
--audio, -a |
Override with a specific audio file | Auto / Assets |
--assets-dir |
Custom directory containing assets | assets |
--trigger-on-move |
Also trigger on mouse movement (in addition to clicks) | Disabled |
--max-volume |
Force system output volume to 100% on trigger | Enabled (or $VIBE_TRAP_MAX_VOLUME) |
--no-max-volume |
Preserve current volume when trap triggers | Disabled |
--dry-run |
Test mode: triggers payload but skips screen sleep lock | Disabled |
--anti-theft, -T |
Coffee shop anti-theft mode: tracks accelerometer movement, AC unplug & lid close | Disabled |
--sensitivity, -s |
Anti-theft motion sensitivity (low, medium, high) |
medium |
--version, -v |
Show version number and exit | 1.3.0 |
--help, -h |
Show help message and exit |
☕ Coffee Shop Anti-Theft Protection:
# Multi-vector protection: triggers if charger is unplugged or lid is closed
caffeinate -d npx vibe-trap --anti-theft
# With root privileges to unlock Apple Silicon hardware IMU accelerometer & gyro:
sudo caffeinate -d npx vibe-trap --anti-theft --sensitivity high
Custom Countdown & Immediate Arming:
# Give yourself 10 seconds to step away
caffeinate -d npx vibe-trap --countdown 10
# Arm immediately without countdown
caffeinate -d npx vibe-trap -c 0
Safe Test Mode (Dry Run - No Screen Sleep & No Max Volume):
# Safe for headphones while testing
npx vibe-trap --dry-run --no-max-volume
Custom Password:
caffeinate -d npx vibe-trap --password "opensesame"
Custom Jumpscare:
caffeinate -d npx vibe-trap --image "assets/ghost.png" --audio "assets/ghost.wav"
vibe-trap utilizes a high-performance Hybrid npm + Native Swift Architecture:
bin/cli.js): Provides instant, zero-install execution via npx vibe-trap, verifying macOS compatibility and relaying system signals.bin/vibe_trap): Ultra-lightweight (170 KB) native binary compiled from Swift (src/main.swift). It leverages macOS AppKit (borderless fullscreen topmost window) and Quartz CGEvent taps + raw terminal stdin streams, starting in under 10ms with zero runtime dependencies.If you want to run or rebuild from source:
# Clone the repository
git clone https://github.com/ntsd/vibe-trap.git
cd vibe-trap
# Recompile native Swift binary
npm run build:bin
# Test CLI execution
npm test
To test the trap safely without locking your screen:
# Safe dry-run test
npx . --dry-run
vibetrap on your keyboard. The script silently disarms and exits.a). The jumpscare window and audio payload will fire for 3 seconds.Distributed under the MIT License. See LICENSE for details.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.