secops-logging-best-practices
Pass
Audited by Gen Agent Trust Hub on Dec 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides instructions for using
gcloudto manage cloud resources and shell commands for security auditing and log redaction. These capabilities are intended for administrative users to configure security monitoring and follow standard operational procedures. - [EXTERNAL_DOWNLOADS]: Fetches the Google Cloud CLI from official Google Cloud documentation to set up the necessary environment for security operations. This reference targets a trusted organization and follows standard deployment practices.
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted log telemetry. It mitigates this potential attack surface by including explicit warnings to treat all log data as untrusted and by providing script templates that use regex-based sanitization to prevent log injection (CWE-117).
- Ingestion points: Host log payloads and system outputs from Windows, Linux, and Kubernetes environments described in
SKILL.md. - Boundary markers: Provides an explicit instruction to treat all log payloads strictly as untrusted data.
- Capability inventory: Includes shell command execution, file system interactions, and cloud resource management via CLI tools.
- Sanitization: Implements regex filtering in its logging emitter templates to remove control characters from data before it is logged.
- [DYNAMIC_EXECUTION]: Includes template code for custom logging emitters. These scripts are provided for administrative configuration and include safety features such as atomic file writes, standard library usage, and input validation.
Audit Metadata