train-ghostwriter
Pass
Audited by Gen Agent Trust Hub on Jul 23, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Spawns local binaries (
codexandclaude) to perform LLM operations. This is implemented securely using argument arrays and disabling shell execution to prevent command injection. - [COMMAND_EXECUTION]: Executes local TypeScript scripts (
prepare-corpus.tsandrun-agent.ts) via the Node.js runtime for workflow management. - [SAFE]: Implements comprehensive filesystem protections, including path traversal prevention through lexical and physical confinement checks within the
GHOSTWRITER_HOMEdirectory. - [SAFE]: Ingestion point:
prepare-corpus.tsreads external writing samples via the--inputflag. Boundary markers:buildProfilePromptuses 'Untrusted training payload' headers. Capability inventory:spawnfor CLI execution andwriteFilefor profile storage. Sanitization: EmploysJSON.stringifyto wrap samples before interpolation into prompts. - [SAFE]: Includes automated PII redaction (emails, phone numbers) and prohibits local image path inclusion to protect user privacy during the profile generation process.
Audit Metadata