[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71EQT3BWYN1X99X1GE6TJYC":3,"skill-same:01M71EQT3BWYN1X99X1GE6TJYC":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":14,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M71EQT3BWYN1X99X1GE6TJYC","kernel-cgroups-v2-forensic",null,"Linux cgroups v2 forensic analysis — resource isolation inspection, container escape detection via cgroup release agents, and cgroup-based persistence hunting.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Flinux\u002Fkernel\u002Fcgroups\u002Fv2\u002Fforensic\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"kernel cgroups v2 forensic","cgroups","kernel","forensic","sonnet","release","read","de","hunting","forensic analysis","team","analysis","Bash","cybersecurity","inspection","container-escape","blue-team","cm","pt","container escape","2026-11-10 10:12:30",false,"---\nname: kernel-cgroups-v2-forensic\ndescription: Linux cgroups v2 forensic analysis — resource isolation inspection, container escape detection via cgroup release agents, and cgroup-based persistence hunting.\ndomain: cybersecurity\nsubdomain: endpoint-forensics\ntags:\n- linux\n- cgroups\n- container-escape\n- kernel\n- blue-team\nmodel: sonnet\nmaxTurns: 15\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1611\n- T1055\n- T1543\nnist_csf:\n- DE.CM-01\n- PR.PT-04\ncapec: []\n---\n\n# Linux cgroups v2 Forensic Analysis\n\n## Overview\n\nControl Groups (cgroups) manage resource allocation for process groups. Attackers exploit cgroup release agents for container escapes (CVE-2022-0492) and abuse cgroup namespaces to persist or evade detection. This skill covers forensic inspection of the unified cgroup v2 hierarchy.\n\n## When to Use\n\n- When investigating container escape attempts\n- When auditing Kubernetes\u002FDocker workloads for cgroup misconfigurations\n- When hunting for cgroup release_agent persistence\n- When analyzing resource usage anomalies that may indicate cryptomining\n\n## Prerequisites\n\n- Access to `\u002Fsys\u002Ffs\u002Fcgroup\u002F` (cgroup v2 unified hierarchy)\n- `systemd-cgls`, `systemctl`, `findmnt`\n\n## Core Commands\n\n### Enumerate cgroup Hierarchy\n```bash\n# Check cgroup version in use\nmount | grep cgroup\n\n# Full hierarchy tree\nsystemd-cgls\n\n# Flat list of all cgroups\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"cgroup.procs\" | xargs -I{} sh -c 'echo \"=== {} ===\"; cat {}'\n```\n\n### Detect release_agent Abuse (CVE-2022-0492 Pattern)\n```bash\n# Check for writable release_agent files (v1 only, but check for presence)\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"release_agent\" 2>\u002Fdev\u002Fnull\n\n# In v2, check for notify_on_release misuse\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"notify_on_release\" -exec cat {} \\; 2>\u002Fdev\u002Fnull | grep -v \"^0\"\n\n# Detect containers with CAP_SYS_ADMIN that can remount cgroup v1\ngrep -r \"SYS_ADMIN\" \u002Fetc\u002Fdocker\u002F \u002Fetc\u002Fcontainerd\u002F 2>\u002Fdev\u002Fnull\n```\n\n### Inspect Process-to-cgroup Mapping\n```bash\n# Map all PIDs to their cgroup path\nfor pid in $(ls \u002Fproc | grep '^[0-9]'); do\n  echo \"$pid: $(cat \u002Fproc\u002F$pid\u002Fcgroup 2>\u002Fdev\u002Fnull | head -1)\"\ndone | grep -v \"^$\"\n\n# Find processes NOT in a cgroup (possible escape)\nawk -F: '{print $3}' \u002Fproc\u002F*\u002Fcgroup 2>\u002Fdev\u002Fnull | sort -u\n\n# Specific PID cgroup membership\ncat \u002Fproc\u002F\u003CPID>\u002Fcgroup\n```\n\n### Resource Anomaly Detection (Cryptomining)\n```bash\n# Find cgroups with excessive CPU usage\ncat \u002Fsys\u002Ffs\u002Fcgroup\u002F*\u002Fcpu.stat 2>\u002Fdev\u002Fnull | grep usage_usec | sort -t= -k2 -rn | head -20\n\n# Find cgroups with no memory limit (potential abuse)\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"memory.max\" -exec sh -c 'v=$(cat {}); [ \"$v\" = \"max\" ] && echo {}' \\;\n```\n\n### Container Escape Detection\n```bash\n# Check if we're inside a container\ncat \u002Fproc\u002F1\u002Fcgroup | grep -q \"docker\\|kubepods\\|containerd\" && echo \"CONTAINER DETECTED\"\n\n# Check for writable cgroup fs from inside container\nmount | grep \"cgroup\" | grep -v \"ro,\"\n\n# Detect release_agent write (forensic artifact)\ngrep \"release_agent\" \u002Fvar\u002Flog\u002Faudit\u002Faudit.log 2>\u002Fdev\u002Fnull\n```\n\n## Forensic Workflow\n\n1. Enumerate all cgroups: `systemd-cgls > cgroup_snapshot.txt`\n2. Identify orphaned PIDs (processes not in expected cgroup slice)\n3. Check `release_agent` files for scripts — any non-empty file is suspicious\n4. Correlate PIDs in unexpected cgroups with network connections\n5. Map cgroup resource limits — unlimited memory + high CPU = cryptomining indicator\n\n## MITRE ATT&CK Mapping\n\n| Finding | Technique |\n|---|---|\n| `release_agent` with script payload | T1611 — Escape to Host |\n| Process bypassing cgroup limits | T1055 — Process Injection |\n| Service registered in cgroup without systemd unit | T1543.002 — Systemd Service |\n\n","# Linux cgroups v2 Forensic Analysis\n\n## Overview\n\nControl Groups (cgroups) manage resource allocation for process groups. Attackers exploit cgroup release agents for container escapes (CVE-2022-0492) and abuse cgroup namespaces to persist or evade detection. This skill covers forensic inspection of the unified cgroup v2 hierarchy.\n\n## When to Use\n\n- When investigating container escape attempts\n- When auditing Kubernetes\u002FDocker workloads for cgroup misconfigurations\n- When hunting for cgroup release_agent persistence\n- When analyzing resource usage anomalies that may indicate cryptomining\n\n## Prerequisites\n\n- Access to `\u002Fsys\u002Ffs\u002Fcgroup\u002F` (cgroup v2 unified hierarchy)\n- `systemd-cgls`, `systemctl`, `findmnt`\n\n## Core Commands\n\n### Enumerate cgroup Hierarchy\n```bash\n# Check cgroup version in use\nmount | grep cgroup\n\n# Full hierarchy tree\nsystemd-cgls\n\n# Flat list of all cgroups\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"cgroup.procs\" | xargs -I{} sh -c 'echo \"=== {} ===\"; cat {}'\n```\n\n### Detect release_agent Abuse (CVE-2022-0492 Pattern)\n```bash\n# Check for writable release_agent files (v1 only, but check for presence)\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"release_agent\" 2>\u002Fdev\u002Fnull\n\n# In v2, check for notify_on_release misuse\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"notify_on_release\" -exec cat {} \\; 2>\u002Fdev\u002Fnull | grep -v \"^0\"\n\n# Detect containers with CAP_SYS_ADMIN that can remount cgroup v1\ngrep -r \"SYS_ADMIN\" \u002Fetc\u002Fdocker\u002F \u002Fetc\u002Fcontainerd\u002F 2>\u002Fdev\u002Fnull\n```\n\n### Inspect Process-to-cgroup Mapping\n```bash\n# Map all PIDs to their cgroup path\nfor pid in $(ls \u002Fproc | grep '^[0-9]'); do\n  echo \"$pid: $(cat \u002Fproc\u002F$pid\u002Fcgroup 2>\u002Fdev\u002Fnull | head -1)\"\ndone | grep -v \"^$\"\n\n# Find processes NOT in a cgroup (possible escape)\nawk -F: '{print $3}' \u002Fproc\u002F*\u002Fcgroup 2>\u002Fdev\u002Fnull | sort -u\n\n# Specific PID cgroup membership\ncat \u002Fproc\u002F\u003CPID>\u002Fcgroup\n```\n\n### Resource Anomaly Detection (Cryptomining)\n```bash\n# Find cgroups with excessive CPU usage\ncat \u002Fsys\u002Ffs\u002Fcgroup\u002F*\u002Fcpu.stat 2>\u002Fdev\u002Fnull | grep usage_usec | sort -t= -k2 -rn | head -20\n\n# Find cgroups with no memory limit (potential abuse)\nfind \u002Fsys\u002Ffs\u002Fcgroup -name \"memory.max\" -exec sh -c 'v=$(cat {}); [ \"$v\" = \"max\" ] && echo {}' \\;\n```\n\n### Container Escape Detection\n```bash\n# Check if we're inside a container\ncat \u002Fproc\u002F1\u002Fcgroup | grep -q \"docker\\|kubepods\\|containerd\" && echo \"CONTAINER DETECTED\"\n\n# Check for writable cgroup fs from inside container\nmount | grep \"cgroup\" | grep -v \"ro,\"\n\n# Detect release_agent write (forensic artifact)\ngrep \"release_agent\" \u002Fvar\u002Flog\u002Faudit\u002Faudit.log 2>\u002Fdev\u002Fnull\n```\n\n## Forensic Workflow\n\n1. Enumerate all cgroups: `systemd-cgls > cgroup_snapshot.txt`\n2. Identify orphaned PIDs (processes not in expected cgroup slice)\n3. Check `release_agent` files for scripts — any non-empty file is suspicious\n4. Correlate PIDs in unexpected cgroups with network connections\n5. Map cgroup resource limits — unlimited memory + high CPU = cryptomining indicator\n\n## MITRE ATT&CK Mapping\n\n| Finding | Technique |\n|---|---|\n| `release_agent` with script payload | T1611 — Escape to Host |\n| Process bypassing cgroup limits | T1055 — Process Injection |\n| Service registered in cgroup without systemd unit | T1543.002 — Systemd Service |\n\n",{"name":5,"tags":44,"capec":46,"model":23,"tools":47,"domain":32,"maxTurns":51,"nist_csf":52,"subdomain":55,"description":7,"mitre_attack":56},[45,20,34,21,35],"linux",[],[48,31,49,50],"Read","Glob","Grep",15,[53,54],"DE.CM-01","PR.PT-04","endpoint-forensics",[57,58,59],"T1611","T1055","T1543","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Flinux\u002Fkernel\u002Fcgroups\u002Fv2\u002Fforensic","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill kernel-cgroups-v2-forensic",{"tool":73,"command":74},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill kernel-cgroups-v2-forensic",{"tool":76,"command":77},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill kernel-cgroups-v2-forensic","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Flinux\u002Fkernel\u002Fcgroups\u002Fv2\u002Fforensic\u002FSKILL.md",true,[81],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"index.json","REFERENCE","参考文档",653,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Flinux\u002Fkernel\u002Fcgroups\u002Fv2\u002Fforensic\u002Findex.json",[88,98,121,140,161,183],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":97},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[105,106,107,108,109,110,111,32,112,113,114,115,116,117,118,119,120,36,26],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[128,108,129,105,130,131,31,30,29,32,132,133,134,135,136,25,137,138,26,139],"exec","services wmi exec exploit","exploit","across","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[147,148,149,150,151,23,152,153,154,155,25,26,156,157,30,158,31,32,159,160],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[168,169,170,106,32,171,36,172,173,174,110,26,175,176,177,178,179,180,181,182],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[190,168,191,106,192,193,111,26,175,194,195,196,30,110,32,171,197,36,198,173],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]