[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71E7SKRB6FYA95JFAQ1JJH6":3,"skill-same:01M71E7SKRB6FYA95JFAQ1JJH6":57},{"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":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M71E7SKRB6FYA95JFAQ1JJH6","linux-id-privesc-assess-audit",null,"Linux Id Privesc Assess Audit.","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-id-privesc-assess-audit\u002FSKILL.md",[],[19,20,21,22,23,24],"linux","audit","id","assess","linux id privesc assess audit","cybersecurity","2026-11-10 10:12:30",false,"---\nname: linux-id-privesc-assess-audit\ndescription: \"Linux Id Privesc Assess Audit.\"\ndomain: cybersecurity\n---\n\n|\n| **SUID Binary** | A Linux binary with the Set User ID bit enabled, which executes with the file owner's privileges (typically root) regardless of who runs it |\n| **SeImpersonatePrivilege** | A Windows privilege that allows a process to impersonate another user's security token, commonly abused by service accounts to escalate to SYSTEM |\n| **Kernel Exploit** | An exploit targeting a vulnerability in the operating system kernel to gain ring-0 or root\u002FSYSTEM-level access |\n| **GTFOBins** | A curated list of Unix binaries that can be exploited for privilege escalation, file read\u002Fwrite, or shell escape when misconfigured |\n| **LOLBAS** | Living Off The Land Binaries and Scripts; legitimate Windows binaries that can be abused for code execution, file operations, or persistence |\n| **DLL Hijacking** | Exploiting the DLL search order on Windows to load a malicious DLL by placing it in a directory searched before the legitimate DLL location |\n| **Token Impersonation** | A Windows technique where a compromised process with appropriate privileges captures and uses another user's access token to execute commands as that user |\n\n## Tools & Systems\n\n- **linPEAS \u002F winPEAS**: Automated privilege escalation enumeration scripts that check hundreds of potential escalation vectors on Linux and Windows\n- **GTFOBins \u002F LOLBAS**: Reference databases of Unix binaries and Windows binaries that can be exploited for privilege escalation when misconfigured\n- **PrintSpoofer \u002F GodPotato**: Windows privilege escalation tools that exploit `SeImpersonatePrivilege` to achieve SYSTEM-level access from service accounts\n- **Linux Exploit Suggester**: Script that compares the target kernel version against a database of known kernel exploits to identify applicable exploits\n\n## Common Scenarios\n\n### Scenario: Privilege Escalation on a Linux Web Server\n\n**Context**: During a penetration test, the tester gained a low-privilege shell as `www-data` on an Ubuntu 22.04 web server through a PHP file upload vulnerability. The goal is to escalate to root to demonstrate full server compromise.\n\n**Approach**:\n1. Run `linpeas.sh` which identifies that `www-data` can run `\u002Fusr\u002Fbin\u002Ffind` as root via sudo without a password\n2. Verify with `sudo -l`: `(root) NOPASSWD: \u002Fusr\u002Fbin\u002Ffind`\n3. Consult GTFOBins for the `find` sudo entry: `sudo find . -exec \u002Fbin\u002Fbash -p \\; -quit`\n4. Execute the command and obtain a root shell\n5. As root, access `\u002Fetc\u002Fshadow` to extract password hashes, read database credentials from the application configuration, and access the MySQL database containing customer PII\n6. Document: initial access as www-data -> sudo misconfiguration -> root shell -> database access -> 75,000 customer records accessible\n\n**Pitfalls**:\n- Running kernel exploits without testing on a similar system first, risking a kernel panic and system crash\n- Not checking for container environments where apparent root access may be limited to the container namespace\n- Ignoring cloud metadata endpoints accessible from the compromised host that may yield IAM credentials\n- Failing to enumerate capabilities and SUID binaries after checking sudo, missing alternative escalation paths\n\n## Output Format\n\n```\n## Finding: Sudo Misconfiguration Allowing Root Escalation via find\n\n**ID**: PRIV-001\n**Severity**: Critical (CVSS 8.8)\n**Affected Host**: web-prod-01 (10.10.5.15)\n**OS**: Ubuntu 22.04 LTS\n**Initial Access**: www-data (via PHP file upload - WEB-004)\n**Escalation Technique**: MITRE ATT&CK T1548.003 - Sudo and Sudo Caching\n\n**Description**:\nThe www-data user is configured in \u002Fetc\u002Fsudoers to execute \u002Fusr\u002Fbin\u002Ffind as root\nwithout a password. The find command supports the -exec flag which can spawn a\nroot shell, effectively granting www-data unrestricted root access.\n\n**Proof of Concept**:\nwww-data@web-prod-01:~$ sudo -l\n(root) NOPASSWD: \u002Fusr\u002Fbin\u002Ffind\nwww-data@web-prod-01:~$ sudo find . -exec \u002Fbin\u002Fbash -p \\; -quit\nroot@web-prod-01:~# id\nuid=0(root) gid=0(root) groups=0(root)\n\n**Impact**:\nFull root access on the production web server. From root, the tester accessed\ndatabase credentials in \u002Fvar\u002Fwww\u002Fapp\u002F.env, connected to MySQL, and confirmed\nread access to 75,000 customer records including names, emails, and addresses.\n\n**Remediation**:\n1. Remove the \u002Fusr\u002Fbin\u002Ffind sudo entry for www-data\n2. If find access is required, restrict it to specific directories with --no-exec\n3. Audit all sudo entries for binaries listed in GTFOBins\n4. Implement sudo logging with auditd for all privileged command execution\n```\n","|\n| **SUID Binary** | A Linux binary with the Set User ID bit enabled, which executes with the file owner's privileges (typically root) regardless of who runs it |\n| **SeImpersonatePrivilege** | A Windows privilege that allows a process to impersonate another user's security token, commonly abused by service accounts to escalate to SYSTEM |\n| **Kernel Exploit** | An exploit targeting a vulnerability in the operating system kernel to gain ring-0 or root\u002FSYSTEM-level access |\n| **GTFOBins** | A curated list of Unix binaries that can be exploited for privilege escalation, file read\u002Fwrite, or shell escape when misconfigured |\n| **LOLBAS** | Living Off The Land Binaries and Scripts; legitimate Windows binaries that can be abused for code execution, file operations, or persistence |\n| **DLL Hijacking** | Exploiting the DLL search order on Windows to load a malicious DLL by placing it in a directory searched before the legitimate DLL location |\n| **Token Impersonation** | A Windows technique where a compromised process with appropriate privileges captures and uses another user's access token to execute commands as that user |\n\n## Tools & Systems\n\n- **linPEAS \u002F winPEAS**: Automated privilege escalation enumeration scripts that check hundreds of potential escalation vectors on Linux and Windows\n- **GTFOBins \u002F LOLBAS**: Reference databases of Unix binaries and Windows binaries that can be exploited for privilege escalation when misconfigured\n- **PrintSpoofer \u002F GodPotato**: Windows privilege escalation tools that exploit `SeImpersonatePrivilege` to achieve SYSTEM-level access from service accounts\n- **Linux Exploit Suggester**: Script that compares the target kernel version against a database of known kernel exploits to identify applicable exploits\n\n## Common Scenarios\n\n### Scenario: Privilege Escalation on a Linux Web Server\n\n**Context**: During a penetration test, the tester gained a low-privilege shell as `www-data` on an Ubuntu 22.04 web server through a PHP file upload vulnerability. The goal is to escalate to root to demonstrate full server compromise.\n\n**Approach**:\n1. Run `linpeas.sh` which identifies that `www-data` can run `\u002Fusr\u002Fbin\u002Ffind` as root via sudo without a password\n2. Verify with `sudo -l`: `(root) NOPASSWD: \u002Fusr\u002Fbin\u002Ffind`\n3. Consult GTFOBins for the `find` sudo entry: `sudo find . -exec \u002Fbin\u002Fbash -p \\; -quit`\n4. Execute the command and obtain a root shell\n5. As root, access `\u002Fetc\u002Fshadow` to extract password hashes, read database credentials from the application configuration, and access the MySQL database containing customer PII\n6. Document: initial access as www-data -> sudo misconfiguration -> root shell -> database access -> 75,000 customer records accessible\n\n**Pitfalls**:\n- Running kernel exploits without testing on a similar system first, risking a kernel panic and system crash\n- Not checking for container environments where apparent root access may be limited to the container namespace\n- Ignoring cloud metadata endpoints accessible from the compromised host that may yield IAM credentials\n- Failing to enumerate capabilities and SUID binaries after checking sudo, missing alternative escalation paths\n\n## Output Format\n\n```\n## Finding: Sudo Misconfiguration Allowing Root Escalation via find\n\n**ID**: PRIV-001\n**Severity**: Critical (CVSS 8.8)\n**Affected Host**: web-prod-01 (10.10.5.15)\n**OS**: Ubuntu 22.04 LTS\n**Initial Access**: www-data (via PHP file upload - WEB-004)\n**Escalation Technique**: MITRE ATT&CK T1548.003 - Sudo and Sudo Caching\n\n**Description**:\nThe www-data user is configured in \u002Fetc\u002Fsudoers to execute \u002Fusr\u002Fbin\u002Ffind as root\nwithout a password. The find command supports the -exec flag which can spawn a\nroot shell, effectively granting www-data unrestricted root access.\n\n**Proof of Concept**:\nwww-data@web-prod-01:~$ sudo -l\n(root) NOPASSWD: \u002Fusr\u002Fbin\u002Ffind\nwww-data@web-prod-01:~$ sudo find . -exec \u002Fbin\u002Fbash -p \\; -quit\nroot@web-prod-01:~# id\nuid=0(root) gid=0(root) groups=0(root)\n\n**Impact**:\nFull root access on the production web server. From root, the tester accessed\ndatabase credentials in \u002Fvar\u002Fwww\u002Fapp\u002F.env, connected to MySQL, and confirmed\nread access to 75,000 customer records including names, emails, and addresses.\n\n**Remediation**:\n1. Remove the \u002Fusr\u002Fbin\u002Ffind sudo entry for www-data\n2. If find access is required, restrict it to specific directories with --no-exec\n3. Audit all sudo entries for binaries listed in GTFOBins\n4. Implement sudo logging with auditd for all privileged command execution\n```\n",{"name":5,"domain":24,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Flinux-id-privesc-assess-audit","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill linux-id-privesc-assess-audit",{"tool":43,"command":44},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill linux-id-privesc-assess-audit",{"tool":46,"command":47},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill linux-id-privesc-assess-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Flinux-id-privesc-assess-audit\u002FSKILL.md",true,[51],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"index.json","REFERENCE","参考文档",516,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Flinux-id-privesc-assess-audit\u002Findex.json",[58,68,93,116,138,160],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":67},"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":25},"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",[],[75,76,77,78,79,80,81,24,82,83,84,85,86,87,88,89,90,91,92],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":25},"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",[],[100,78,101,75,102,103,104,105,106,24,107,108,109,110,111,112,113,114,92,115],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":25},"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",[],[123,124,125,126,127,128,129,130,131,132,112,92,133,134,105,135,104,24,136,137],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":25},"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",[],[145,146,147,76,24,148,91,149,150,151,80,92,152,153,154,155,156,157,158,159],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":25},"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",[],[167,145,168,76,169,170,81,92,152,171,172,173,105,80,24,148,174,91,175,150],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]