hk
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill establishes a significant attack surface for indirect prompt injection by configuring an agent to process untrusted repository content through various linters, formatters, and custom scripts.
- Ingestion points: The agent is instructed to run tools on staged files (
{{files}}) identified by glob patterns inhk.pklacross all repository files (e.g., source code, configuration files, markdown). - Boundary markers: The skill does not provide explicit prompt boundary markers or instruction-override warnings when passing repository content to these automated tools.
- Capability inventory: The configured system has the capability to execute shell commands via Git hooks, perform automated file modifications ('fix' mode), and block Git operations (commits/pushes).
- Sanitization: No evidence of sanitization or escaping of file content was found before the data is processed by the configured tools.
- [COMMAND_EXECUTION]: The skill centers on configuring Git hooks that execute arbitrary shell commands during development workflows.
- Evidence: The skill sets up a tracked wrapper script at
.hk-hooks/pre-commitwhich executesexec "$HK_BIN" run pre-commit -q "$@". - Evidence: Configuration examples in
hk.pkldefine shell commands for tools likepnpm exec prettier,ruff check,go test ./..., and custom shell scripts for branch protection. - [EXTERNAL_DOWNLOADS]: The skill fetches and incorporates remote configuration files from external repositories.
- Evidence: The
hk.pklconfiguration files use Pkl'samendsandimportfeatures to downloadConfig.pklandBuiltins.pklfrom the officialjdx/hkGitHub repository. - [DYNAMIC_EXECUTION]: The skill supports a testing framework that involves dynamic file generation and command execution in a sandboxed environment.
- Evidence: The
tests {}block inhk.pkl(managed byhk test) allows for creating inline file fixtures and running setup/verification commands likechmod +xor custom Bash scripts during the testing phase.
Audit Metadata