apu-memory-tuner
Pass
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPERSISTENCEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes platform-specific commands to inspect system hardware and apply memory tuning parameters.
scripts/detect_platform.pyandscripts/show_config.pyrunpowershell,wmic,rocminfo, anddmesgto gather hardware details.scripts/apply_profile.pyuses theamd-ttmutility to write memory limits to system configuration files on Linux.- [EXTERNAL_DOWNLOADS]: The skill identifies a dependency on the
amd-debug-toolspackage from PyPI for Linux tuning. - Instructions in
SKILL.mdandreference.mdguide the user to install this package usingpipx. - The package and documentation sources (rocm.docs.amd.com) are official resources provided by the vendor, AMD.
- [PERSISTENCE]: The skill implements persistent system changes by creating or modifying
/etc/modprobe.d/ttm.confon Linux through theamd-ttmtool. - This mechanism ensures that the memory allocation settings are applied automatically during the kernel boot process, which is the primary intended function of the tuner.
- [INDIRECT_PROMPT_INJECTION]: The skill processes output from system-level tools like
dmesgandrocminfoto determine the current hardware state. - Ingestion points: Data is read via
subprocess.runcalls inscripts/show_config.py(e.g.,dmesg,rocminfo). - Boundary markers: The skill uses specific regex patterns and substring matching to extract only the relevant hardware parameters, rather than passing raw output directly to the LLM context.
- Capability inventory: The skill has the ability to write system configuration via
amd-ttmand read system logs. - Sanitization: The scripts perform validation on the parsed values (e.g., ensuring memory sizes are within safe percentages of total RAM) before they are used in configuration commands.
Audit Metadata