okf-wiki
Pass
Audited by Gen Agent Trust Hub on Jul 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
subprocess.runin several scripts for legitimate operational tasks: scripts/scaffold.pyexecutes the project's validator viasys.executableto ensure the generated bundle is valid by construction.tests/test_okf_wiki.pyruns various CLI scripts (scaffold.py,validate.py, and hooks) to perform integration testing.scripts/gh-wiki-bootstrap.pyinvokes theplaywrightCLI to manage browser automation.- [EXTERNAL_DOWNLOADS]: The skill's documentation and scripts reference external dependencies and tools:
README.mdandexample/README.mdinstruct the user to installPyYAMLandplaywrightviapip.scripts/gh-wiki-bootstrap.pyutilizes the Playwright library to automate interactions with GitHub's web interface.scripts/scaffold.pyandscripts/validate.pyinclude logic to verify the presence ofPyYAMLbefore execution.- [DATA_EXFILTRATION]:
scripts/gh-wiki-bootstrap.pyaccesses a sensitive local file containing GitHub session credentials: - The script reads a Playwright
storageStateJSON file (defaulting to~/.cache/gh_state.json). - This file contains raw browser cookies and authentication state, which are used to bypass the lack of a REST API for GitHub Wikis.
- This access is documented as necessary for the script's primary function of bootstrapping the first page of a GitHub Wiki.
- [PROMPT_INJECTION]: The skill implements an 'Indirect Prompt Injection' surface through its orientation hooks:
- Ingestion points:
okf-anchor.py(SessionStart hook) reads the content ofbundle/index.md(or the rootindex.md) and prints it to stdout for context injection. - Boundary markers: The hook wraps the injected content with explicit markers:
--- begin OKF index ---and--- end OKF index ---. - Capability inventory: The skill provides capabilities for shell command execution (
scaffold.py), file writing (scaffold.py), and browser automation (gh-wiki-bootstrap.py). - Sanitization: The hook strips YAML frontmatter from the index file but does not perform additional sanitization of the markdown body, relying on the agent's internal safety filters for untrusted data processed at session start.
Audit Metadata