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, andlsmodviasubprocess.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'sgcccompiler. Additionally, a vendored dependency inscripts/thirdparties/dataclasses_backport.pyutilizes anexec()call to dynamically generate class structures. - [OBFUSCATION]: The build system in
poc-src/build.shand the associatedMakefileperform magic byte masking on generated binaries, replacing the standard\x7fELFheader withCVE\x00. The binary loader inscripts/poc/elf_loader.pyrestores 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 likescripts/detector/base.pyand 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