alibabacloud-ecs-sec-kernel

Pass

Audited by Gen Agent Trust Hub on Nov 27, 2026

Risk Level: SAFEPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONDYNAMIC_EXECUTIONOBFUSCATIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [PRIVILEGE_ESCALATION]: The skill requires root privileges to perform auditing tasks, load kernel modules (e.g., via modprobe), and create root-owned files for CTF verification. This requirement is documented in the safety disclaimer and frontmatter.
  • [COMMAND_EXECUTION]: The tool frequently executes system utilities including modprobe, sysctl, uname, and lsmod via subprocess.run() to analyze kernel configurations and loaded modules. It also executes local proof-of-concept binaries using a controlled loader.
  • [DYNAMIC_EXECUTION]: The skill compiles C source code provided in the poc-src/ directory into executable binaries at runtime using the system's gcc compiler. Additionally, a vendored dependency in scripts/thirdparties/dataclasses_backport.py utilizes an exec() call to dynamically generate class structures.
  • [OBFUSCATION]: The build system in poc-src/build.sh and the associated Makefile perform magic byte masking on generated binaries, replacing the standard \x7fELF header with CVE\x00. The binary loader in scripts/poc/elf_loader.py restores the correct magic bytes in memory before execution to avoid static detection signatures.
  • [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect injection as it parses potentially untrusted data from kernel logs (dmesg) and PoC output in files like scripts/detector/base.py and various post-check handlers. These ingestion points lack formal sanitization or boundary markers, though the impact is mitigated by the tool's internal verification logic.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 27, 2026, 02:42 AM