[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E290DFVETN664JWZE8TM05":3,"skill-same:01M7E290DFVETN664JWZE8TM05":91},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M7E290DFVETN664JWZE8TM05","analyzing-persistence-mechanisms-in-linux",null,"Scan Linux systems for persistence mechanisms including crontab\u002Fsystemd entries, LD_PRELOAD injection, shell profile modifications (.bashrc, .profile), and SSH authorized_keys backdoors, then correlate findings with auditd logs into an installation timeline. Use during incident response or threat hunting to detect or confirm how an adversary maintained access to a compromised Linux host.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fanalyzing-persistence-mechanisms-in-linux\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fanalyzing-persistence-mechanisms-in-linux\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-persistence-mechanisms-in-linux\ndescription: Scan Linux systems for persistence mechanisms including crontab\u002Fsystemd entries, LD_PRELOAD injection, shell profile modifications (.bashrc, .profile), and SSH authorized_keys backdoors, then correlate findings with auditd logs into an installation timeline. Use during incident response or threat hunting to detect or confirm how an adversary maintained access to a compromised Linux host.\ndomain: cybersecurity\nsubdomain: threat-hunting\ntags:\n- linux-persistence\n- crontab\n- systemd\n- ld-preload\n- auditd\n- threat-hunting\n- incident-response\nmitre_attack:\n- T1053.003\n- T1543.002\n- T1574.006\n- T1546.004\n- T1098.004\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Executable Denylisting\n- Execution Isolation\n- File Metadata Consistency Validation\n- Process Termination\n- Content Format Conversion\nnist_csf:\n- DE.CM-01\n- DE.AE-02\n- DE.AE-07\n- ID.RA-05\n---\n\n# Analyzing Persistence Mechanisms in Linux\n\n## Overview\n\nAdversaries establish persistence on Linux systems through crontab jobs, systemd service\u002Ftimer units, LD_PRELOAD library injection, shell profile modifications (.bashrc, .profile), SSH authorized_keys backdoors, and init script manipulation. This skill scans for all known persistence vectors, checks file timestamps and integrity, and correlates findings with auditd logs to build a timeline of persistence installation.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing persistence mechanisms in linux\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Root or sudo access on target Linux system (or forensic image)\n- auditd configured with file watch rules on persistence paths\n- Python 3.8+ with standard library (os, subprocess, json)\n- Optional: OSSEC\u002FWazuh agent for file integrity monitoring alerts\n\n## Steps\n\n1. **Scan Crontab Entries** — Enumerate all user crontabs, \u002Fetc\u002Fcron.d\u002F, \u002Fetc\u002Fcron.daily\u002F, and anacron jobs for suspicious commands\n2. **Audit Systemd Units** — Check \u002Fetc\u002Fsystemd\u002Fsystem\u002F and ~\u002F.config\u002Fsystemd\u002Fuser\u002F for non-package-managed service and timer units\n3. **Detect LD_PRELOAD Hijacking** — Check \u002Fetc\u002Fld.so.preload and LD_PRELOAD environment variable for injected shared libraries\n4. **Inspect Shell Profiles** — Scan .bashrc, .bash_profile, .profile, \u002Fetc\u002Fprofile.d\u002F for injected commands or reverse shells\n5. **Check SSH Authorized Keys** — Audit all authorized_keys files for unauthorized public keys with command restrictions\n6. **Correlate Auditd Logs** — Search auditd logs for file modification events on persistence paths to build an installation timeline\n7. **Generate Persistence Report** — Produce a risk-scored report of all discovered persistence mechanisms\n\n## Expected Output\n\n- JSON report of all persistence mechanisms found with risk scores\n- Timeline of persistence installation from auditd correlation\n- MITRE ATT&CK technique mapping (T1053, T1543, T1574, T1546)\n- Remediation commands for each detected persistence mechanism\n","# Analyzing Persistence Mechanisms in Linux\n\n## Overview\n\nAdversaries establish persistence on Linux systems through crontab jobs, systemd service\u002Ftimer units, LD_PRELOAD library injection, shell profile modifications (.bashrc, .profile), SSH authorized_keys backdoors, and init script manipulation. This skill scans for all known persistence vectors, checks file timestamps and integrity, and correlates findings with auditd logs to build a timeline of persistence installation.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing persistence mechanisms in linux\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Root or sudo access on target Linux system (or forensic image)\n- auditd configured with file watch rules on persistence paths\n- Python 3.8+ with standard library (os, subprocess, json)\n- Optional: OSSEC\u002FWazuh agent for file integrity monitoring alerts\n\n## Steps\n\n1. **Scan Crontab Entries** — Enumerate all user crontabs, \u002Fetc\u002Fcron.d\u002F, \u002Fetc\u002Fcron.daily\u002F, and anacron jobs for suspicious commands\n2. **Audit Systemd Units** — Check \u002Fetc\u002Fsystemd\u002Fsystem\u002F and ~\u002F.config\u002Fsystemd\u002Fuser\u002F for non-package-managed service and timer units\n3. **Detect LD_PRELOAD Hijacking** — Check \u002Fetc\u002Fld.so.preload and LD_PRELOAD environment variable for injected shared libraries\n4. **Inspect Shell Profiles** — Scan .bashrc, .bash_profile, .profile, \u002Fetc\u002Fprofile.d\u002F for injected commands or reverse shells\n5. **Check SSH Authorized Keys** — Audit all authorized_keys files for unauthorized public keys with command restrictions\n6. **Correlate Auditd Logs** — Search auditd logs for file modification events on persistence paths to build an installation timeline\n7. **Generate Persistence Report** — Produce a risk-scored report of all discovered persistence mechanisms\n\n## Expected Output\n\n- JSON report of all persistence mechanisms found with risk scores\n- Timeline of persistence installation from auditd correlation\n- MITRE ATT&CK technique mapping (T1053, T1543, T1574, T1546)\n- Remediation commands for each detected persistence mechanism\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"nist_csf":36,"subdomain":31,"description":7,"mitre_attack":41,"d3fend_techniques":47},[26,27,28,29,30,31,32],"linux-persistence","crontab","systemd","ld-preload","auditd","threat-hunting","incident-response","mahipal","cybersecurity","1.0",[37,38,39,40],"DE.CM-01","DE.AE-02","DE.AE-07","ID.RA-05",[42,43,44,45,46],"T1053.003","T1543.002","T1574.006","T1546.004","T1098.004",[48,49,50,51,52],"Executable Denylisting","Execution Isolation","File Metadata Consistency Validation","Process Termination","Content Format Conversion","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fanalyzing-persistence-mechanisms-in-linux",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill analyzing-persistence-mechanisms-in-linux",{"tool":67,"command":68},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill analyzing-persistence-mechanisms-in-linux",{"tool":70,"command":71},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill analyzing-persistence-mechanisms-in-linux","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fanalyzing-persistence-mechanisms-in-linux\u002FSKILL.md",true,[75,79,85],{"path":76,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fapi-reference.md","REFERENCE","参考文档",2763,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fanalyzing-persistence-mechanisms-in-linux\u002Freferences\u002Fapi-reference.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fagent.py","SCRIPT","脚本",10488,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fanalyzing-persistence-mechanisms-in-linux\u002Fscripts\u002Fagent.py",[92,100,108,116,124,131],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":96,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":96,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"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":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":96,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":96,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]