claudemods

All Claude Code modsjoshkerr/claude-mods

pkexec-guard

A Claude Code mod in joshkerr/claude-mods

Routes `sudo` in Bash calls to a password prompt the person can answer: pkexec on a Linux desktop, an osascript administrator dialog on macOS, and Windows sudo's UAC prompt on Windows.

pkexec-guard reaches L2 (writes or runs) and passed claude plugin validate.

Install hint

/plugin install pkexec-guard --marketplace joshkerr/claude-mods

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsruns processes, reads env vars, draws

Validation

Passed

View the source on GitHub Back to the list

What the scan recorded

Observed events
Bash calls
Hooks
tool.call {tool=Bash}
API calls
$.env.get, $.process.run, $.ui.toast
Validation
Passed
Scanned revision
b1b5b10afe8f
Marketplace warnings
claude-mods

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from joshkerr/claude-mods

Badge for your README

Reach badge for pkexec-guard Validation badge for pkexec-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/joshkerr--claude-mods--pkexec-guard-reach.svg)](https://mods.aidojo.si/mods/joshkerr--claude-mods--pkexec-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/joshkerr--claude-mods--pkexec-guard-validates.svg)](https://mods.aidojo.si/mods/joshkerr--claude-mods--pkexec-guard/)