[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B4R3BS07GXNCDBENVBQ3WT":3,"skill-same:01M7B4R3BS07GXNCDBENVBQ3WT":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":13,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M7B4R3BS07GXNCDBENVBQ3WT","analyzing-linux-system-artifacts",null,"Examine Linux system artifacts (auth logs, cron\u002Fsystemd persistence, shell history, SSH keys, and system configuration) to uncover evidence of compromise, detect rootkits or backdoors, and reconstruct user\u002Fattacker activity. Use when investigating a compromised Linux server or workstation, hunting for persistence mechanisms, or scoping a Linux-based breach during incident response.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-linux-system-artifacts\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-linux-system-artifacts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-linux-system-artifacts\ndescription: Examine Linux system artifacts (auth logs, cron\u002Fsystemd persistence,\n  shell history, SSH keys, and system configuration) to uncover evidence of compromise,\n  detect rootkits or backdoors, and reconstruct user\u002Fattacker activity. Use when\n  investigating a compromised Linux server or workstation, hunting for persistence\n  mechanisms, or scoping a Linux-based breach during incident response.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- linux-forensics\n- system-artifacts\n- log-analysis\n- persistence-detection\n- incident-investigation\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.AN-03\n- DE.AE-02\n- RS.MA-01\nmitre_attack:\n- T1070\n- T1059.004\n- T1543.002\n- T1053.003\n---\n\n# Analyzing Linux System Artifacts\n\n## When to Use\n- When investigating a compromised Linux server or workstation\n- For identifying persistence mechanisms (cron, systemd, SSH keys)\n- When tracing user activity through shell history and authentication logs\n- During incident response to determine the scope of a Linux-based breach\n- For detecting rootkits, backdoors, and unauthorized modifications\n\n## Prerequisites\n- Forensic image or live access to the Linux system (read-only)\n- Understanding of Linux file system hierarchy (FHS)\n- Knowledge of common Linux logging locations (\u002Fvar\u002Flog\u002F)\n- Tools: chkrootkit, rkhunter, AIDE, auditd logs\n- Familiarity with systemd, cron, and PAM configurations\n- Root access for complete artifact collection\n\n## Workflow\n\n### Step 1: Mount and Collect System Artifacts\n\n```bash\n# Mount forensic image read-only\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Flinux_evidence.dd \u002Fmnt\u002Fevidence\n\n# Create collection directories\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Flinux\u002F{logs,config,users,persistence,network}\n\n# Collect authentication logs\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fauth.log* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fsecure* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fsyslog* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fkern.log* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Faudit\u002Faudit.log* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fwtmp \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fbtmp \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Flastlog \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Ffaillog \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\n\n# Collect user artifacts\nfor user_dir in \u002Fmnt\u002Fevidence\u002Fhome\u002F*\u002F; do\n    username=$(basename \"$user_dir\")\n    mkdir -p \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\n    cp \"$user_dir\"\u002F.bash_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.zsh_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp -r \"$user_dir\"\u002F.ssh\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.bashrc \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.profile \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.viminfo \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.wget-hsts \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.python_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\ndone\n\n# Collect root user artifacts\ncp \u002Fmnt\u002Fevidence\u002Froot\u002F.bash_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002Froot\u002F 2>\u002Fdev\u002Fnull\ncp -r \u002Fmnt\u002Fevidence\u002Froot\u002F.ssh\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002Froot\u002F 2>\u002Fdev\u002Fnull\n\n# Collect system configuration\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fpasswd \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fshadow \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fgroup \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fsudoers \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp -r \u002Fmnt\u002Fevidence\u002Fetc\u002Fsudoers.d\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fhosts \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fresolv.conf \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp -r \u002Fmnt\u002Fevidence\u002Fetc\u002Fssh\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\n```\n\n### Step 2: Analyze User Accounts and Authentication\n\n```bash\n# Analyze user accounts for anomalies\npython3 \u003C\u003C 'PYEOF'\nprint(\"=== USER ACCOUNT ANALYSIS ===\\n\")\n\n# Parse \u002Fetc\u002Fpasswd\nwith open('\u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002Fpasswd') as f:\n    for line in f:\n        parts = line.strip().split(':')\n        if len(parts) >= 7:\n            username, _, uid, gid, comment, home, shell = parts[0], parts[1], int(parts[2]), int(parts[3]), parts[4], parts[5], parts[6]\n\n            # Flag accounts with UID 0 (root equivalent)\n            if uid == 0 and username != 'root':\n                print(f\"  ALERT: UID 0 account: {username} (shell: {shell})\")\n\n            # Flag accounts with login shells that shouldn't have them\n            if shell not in ('\u002Fbin\u002Ffalse', '\u002Fusr\u002Fsbin\u002Fnologin', '\u002Fbin\u002Fsync') and uid >= 1000:\n                print(f\"  User: {username} (UID:{uid}, Shell:{shell}, Home:{home})\")\n\n            # Flag system accounts with login shells\n            if uid \u003C 1000 and uid > 0 and shell in ('\u002Fbin\u002Fbash', '\u002Fbin\u002Fsh', '\u002Fbin\u002Fzsh'):\n                print(f\"  WARNING: System account with shell: {username} (UID:{uid}, Shell:{shell})\")\n\n# Parse \u002Fetc\u002Fshadow for account status\nprint(\"\\n=== PASSWORD STATUS ===\")\nwith open('\u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002Fshadow') as f:\n    for line in f:\n        parts = line.strip().split(':')\n        if len(parts) >= 3:\n            username = parts[0]\n            pwd_hash = parts[1]\n            last_change = parts[2]\n\n            if pwd_hash and pwd_hash not in ('*', '!', '!!', ''):\n                hash_type = 'Unknown'\n                if pwd_hash.startswith('$6$'): hash_type = 'SHA-512'\n                elif pwd_hash.startswith('$5$'): hash_type = 'SHA-256'\n                elif pwd_hash.startswith('$y$'): hash_type = 'yescrypt'\n                elif pwd_hash.startswith('$1$'): hash_type = 'MD5 (WEAK)'\n                print(f\"  {username}: {hash_type} hash, last changed: day {last_change}\")\nPYEOF\n\n# Analyze login history\nlast -f \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002Fwtmp > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Flogin_history.txt\nlastb -f \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002Fbtmp > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Ffailed_logins.txt 2>\u002Fdev\u002Fnull\n```\n\n### Step 3: Examine Persistence Mechanisms\n\n```bash\n# Check cron jobs for all users\necho \"=== CRON JOBS ===\" > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n\n# System cron\nfor cronfile in \u002Fmnt\u002Fevidence\u002Fetc\u002Fcrontab \u002Fmnt\u002Fevidence\u002Fetc\u002Fcron.d\u002F*; do\n    echo \"--- $cronfile ---\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    cat \"$cronfile\" 2>\u002Fdev\u002Fnull >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    echo \"\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\ndone\n\n# User cron tabs\nfor cronfile in \u002Fmnt\u002Fevidence\u002Fvar\u002Fspool\u002Fcron\u002Fcrontabs\u002F*; do\n    echo \"--- User crontab: $(basename $cronfile) ---\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    cat \"$cronfile\" 2>\u002Fdev\u002Fnull >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    echo \"\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\ndone\n\n# Check systemd services for persistence\necho \"=== SYSTEMD SERVICES ===\" > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\nfind \u002Fmnt\u002Fevidence\u002Fetc\u002Fsystemd\u002Fsystem\u002F -name \"*.service\" -newer \u002Fmnt\u002Fevidence\u002Fetc\u002Fos-release \\\n   >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\n\nfor svc in \u002Fmnt\u002Fevidence\u002Fetc\u002Fsystemd\u002Fsystem\u002F*.service; do\n    echo \"--- $(basename $svc) ---\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\n    cat \"$svc\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\n    echo \"\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\ndone\n\n# Check authorized SSH keys (backdoor detection)\necho \"=== SSH AUTHORIZED KEYS ===\" > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fssh_keys.txt\nfind \u002Fmnt\u002Fevidence\u002Fhome\u002F \u002Fmnt\u002Fevidence\u002Froot\u002F -name \"authorized_keys\" -exec sh -c \\\n   'echo \"--- {} ---\"; cat {}; echo \"\"' \\; >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fssh_keys.txt\n\n# Check rc.local and init scripts\ncat \u002Fmnt\u002Fevidence\u002Fetc\u002Frc.local 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Frc_local.txt\n\n# Check \u002Fetc\u002Fprofile.d\u002F for login-triggered scripts\nls -la \u002Fmnt\u002Fevidence\u002Fetc\u002Fprofile.d\u002F > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fprofile_scripts.txt\n\n# Check for LD_PRELOAD hijacking\ngrep -r \"LD_PRELOAD\" \u002Fmnt\u002Fevidence\u002Fetc\u002F 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fld_preload.txt\ncat \u002Fmnt\u002Fevidence\u002Fetc\u002Fld.so.preload 2>\u002Fdev\u002Fnull >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fld_preload.txt\n```\n\n### Step 4: Analyze Shell History and Command Execution\n\n```bash\n# Analyze bash history for each user\npython3 \u003C\u003C 'PYEOF'\nimport os, glob\n\nprint(\"=== SHELL HISTORY ANALYSIS ===\\n\")\n\nsuspicious_commands = [\n    'wget', 'curl', 'nc ', 'ncat', 'netcat', 'python -c', 'python3 -c',\n    'perl -e', 'base64', 'chmod 777', 'chmod +s', '\u002Fdev\u002Ftcp', '\u002Fdev\u002Fudp',\n    'nmap', 'masscan', 'hydra', 'john', 'hashcat', 'passwd', 'useradd',\n    'iptables -F', 'ufw disable', 'history -c', 'rm -rf \u002F', 'dd if=',\n    'crontab', 'at ', 'systemctl enable', 'ssh-keygen', 'scp ', 'rsync',\n    'tar czf', 'zip -r', 'openssl enc', 'gpg --encrypt', 'shred',\n    'chattr', 'setfacl', 'awk', '\u002Ftmp\u002F', '\u002Fdev\u002Fshm\u002F'\n]\n\nfor hist_file in glob.glob('\u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F*\u002F.bash_history'):\n    username = hist_file.split('\u002F')[-2]\n    print(f\"User: {username}\")\n\n    with open(hist_file, 'r', errors='ignore') as f:\n        lines = f.readlines()\n\n    print(f\"  Total commands: {len(lines)}\")\n    flagged = []\n    for i, line in enumerate(lines):\n        line = line.strip()\n        for cmd in suspicious_commands:\n            if cmd in line.lower():\n                flagged.append((i+1, line))\n                break\n\n    if flagged:\n        print(f\"  Suspicious commands: {len(flagged)}\")\n        for lineno, cmd in flagged:\n            print(f\"    Line {lineno}: {cmd[:120]}\")\n    print()\nPYEOF\n```\n\n### Step 5: Check for Rootkits and Modified Binaries\n\n```bash\n# Check for known rootkit indicators\n# Compare system binary hashes against known-good\nfind \u002Fmnt\u002Fevidence\u002Fusr\u002Fbin\u002F \u002Fmnt\u002Fevidence\u002Fusr\u002Fsbin\u002F \u002Fmnt\u002Fevidence\u002Fbin\u002F \u002Fmnt\u002Fevidence\u002Fsbin\u002F \\\n   -type f -executable -exec sha256sum {} \\; > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fbinary_hashes.txt\n\n# Check for SUID\u002FSGID binaries (potential privilege escalation)\nfind \u002Fmnt\u002Fevidence\u002F -perm -4000 -type f 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fsuid_files.txt\nfind \u002Fmnt\u002Fevidence\u002F -perm -2000 -type f 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fsgid_files.txt\n\n# Check for suspicious files in \u002Ftmp and \u002Fdev\u002Fshm\nfind \u002Fmnt\u002Fevidence\u002Ftmp\u002F \u002Fmnt\u002Fevidence\u002Fdev\u002Fshm\u002F -type f 2>\u002Fdev\u002Fnull \\\n   -exec file {} \\; > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Ftmp_files.txt\n\n# Check for hidden files and directories\nfind \u002Fmnt\u002Fevidence\u002F -name \".*\" -not -path \"*\u002F\\.\" -type f 2>\u002Fdev\u002Fnull | \\\n   head -100 > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fhidden_files.txt\n\n# Check kernel modules\nls -la \u002Fmnt\u002Fevidence\u002Flib\u002Fmodules\u002F$(ls \u002Fmnt\u002Fevidence\u002Flib\u002Fmodules\u002F | head -1)\u002Fextra\u002F 2>\u002Fdev\u002Fnull \\\n   > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fextra_modules.txt\n\n# Check for modified PAM configuration (authentication backdoors)\ndiff \u002Fmnt\u002Fevidence\u002Fetc\u002Fpam.d\u002F \u002Fcases\u002Fbaseline\u002Fpam.d\u002F 2>\u002Fdev\u002Fnull \\\n   > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fpam_changes.txt\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| \u002Fvar\u002Flog\u002Fauth.log | Primary authentication log on Debian\u002FUbuntu systems |\n| \u002Fvar\u002Flog\u002Fsecure | Primary authentication log on RHEL\u002FCentOS systems |\n| wtmp\u002Fbtmp | Binary logs recording successful and failed login sessions |\n| .bash_history | User command history file (can be cleared by attackers) |\n| crontab | Scheduled task system commonly used for persistence |\n| authorized_keys | SSH public keys granting passwordless access to an account |\n| SUID bit | File permission allowing execution as the file owner (privilege escalation vector) |\n| LD_PRELOAD | Environment variable that loads a shared library before all others (hooking technique) |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| chkrootkit | Rootkit detection scanner for Linux systems |\n| rkhunter | Rootkit Hunter - checks for rootkits, backdoors, and local exploits |\n| AIDE | Advanced Intrusion Detection Environment - file integrity monitor |\n| auditd | Linux audit framework for system call and file access monitoring |\n| last\u002Flastb | Parse wtmp\u002Fbtmp for login and failed login history |\n| Plaso\u002Flog2timeline | Super-timeline creation including Linux artifacts |\n| osquery | SQL-based system querying for live forensic investigation |\n| Velociraptor | Endpoint agent with Linux artifact collection capabilities |\n\n## Common Scenarios\n\n**Scenario 1: SSH Brute Force Followed by Compromise**\nAnalyze auth.log for failed SSH attempts followed by success, identify the attacking IP, check .bash_history for post-compromise commands, examine authorized_keys for added backdoor keys, check crontab for persistence, review network connections.\n\n**Scenario 2: Web Server Compromise via Application Vulnerability**\nExamine web server access and error logs for exploitation attempts, check \u002Ftmp and \u002Fdev\u002Fshm for webshells, analyze the web server user's activity (www-data), check for privilege escalation via SUID binaries or kernel exploits, review outbound connections.\n\n**Scenario 3: Insider Threat on Database Server**\nAnalyze the suspect user's bash_history for database dump commands, check for large tar\u002Fzip files in home directory or \u002Ftmp, examine scp\u002Frsync commands for data transfer, review cron jobs for automated exfiltration, check USB device logs.\n\n**Scenario 4: Crypto-Miner on Cloud Instance**\nCheck for high-CPU processes in \u002Fproc (live) or systemd service files, examine crontab entries for miner restart scripts, check \u002Ftmp for mining binaries, analyze network connections for mining pool communications, review authorized_keys for attacker access.\n\n## Output Format\n\n```\nLinux Forensics Summary:\n  System: webserver01 (Ubuntu 22.04 LTS)\n  Hostname: webserver01.corp.local\n  Kernel: 5.15.0-91-generic\n\n  User Accounts:\n    Total: 25 (3 with UID 0 - 1 ANOMALOUS)\n    Interactive shells: 8 users\n    Recently created: admin2 (created 2024-01-15)\n\n  Authentication Events:\n    Successful SSH logins: 456\n    Failed SSH attempts: 12,345 (from 23 unique IPs)\n    Sudo executions: 89\n\n  Persistence Mechanisms Found:\n    Cron jobs: 3 suspicious (reverse shell, miner restart)\n    Systemd services: 1 unknown (update-checker.service)\n    SSH keys: 2 unauthorized keys in root authorized_keys\n    rc.local: Modified with download cradle\n\n  Suspicious Activity:\n    - bash_history contains wget to pastebin URL\n    - SUID binary \u002Ftmp\u002F.hidden\u002Fescalate found\n    - \u002Fdev\u002Fshm\u002F contains compiled ELF binary\n    - LD_PRELOAD in \u002Fetc\u002Fld.so.preload pointing to \u002Flib\u002F.hidden.so\n\n  Report: \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002F\n```\n","# Analyzing Linux System Artifacts\n\n## When to Use\n- When investigating a compromised Linux server or workstation\n- For identifying persistence mechanisms (cron, systemd, SSH keys)\n- When tracing user activity through shell history and authentication logs\n- During incident response to determine the scope of a Linux-based breach\n- For detecting rootkits, backdoors, and unauthorized modifications\n\n## Prerequisites\n- Forensic image or live access to the Linux system (read-only)\n- Understanding of Linux file system hierarchy (FHS)\n- Knowledge of common Linux logging locations (\u002Fvar\u002Flog\u002F)\n- Tools: chkrootkit, rkhunter, AIDE, auditd logs\n- Familiarity with systemd, cron, and PAM configurations\n- Root access for complete artifact collection\n\n## Workflow\n\n### Step 1: Mount and Collect System Artifacts\n\n```bash\n# Mount forensic image read-only\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Flinux_evidence.dd \u002Fmnt\u002Fevidence\n\n# Create collection directories\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Flinux\u002F{logs,config,users,persistence,network}\n\n# Collect authentication logs\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fauth.log* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fsecure* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fsyslog* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fkern.log* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Faudit\u002Faudit.log* \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fwtmp \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Fbtmp \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Flastlog \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\ncp \u002Fmnt\u002Fevidence\u002Fvar\u002Flog\u002Ffaillog \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002F\n\n# Collect user artifacts\nfor user_dir in \u002Fmnt\u002Fevidence\u002Fhome\u002F*\u002F; do\n    username=$(basename \"$user_dir\")\n    mkdir -p \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\n    cp \"$user_dir\"\u002F.bash_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.zsh_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp -r \"$user_dir\"\u002F.ssh\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.bashrc \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.profile \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.viminfo \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.wget-hsts \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\n    cp \"$user_dir\"\u002F.python_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F$username\u002F 2>\u002Fdev\u002Fnull\ndone\n\n# Collect root user artifacts\ncp \u002Fmnt\u002Fevidence\u002Froot\u002F.bash_history \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002Froot\u002F 2>\u002Fdev\u002Fnull\ncp -r \u002Fmnt\u002Fevidence\u002Froot\u002F.ssh\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002Froot\u002F 2>\u002Fdev\u002Fnull\n\n# Collect system configuration\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fpasswd \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fshadow \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fgroup \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fsudoers \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp -r \u002Fmnt\u002Fevidence\u002Fetc\u002Fsudoers.d\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fhosts \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp \u002Fmnt\u002Fevidence\u002Fetc\u002Fresolv.conf \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\ncp -r \u002Fmnt\u002Fevidence\u002Fetc\u002Fssh\u002F \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002F\n```\n\n### Step 2: Analyze User Accounts and Authentication\n\n```bash\n# Analyze user accounts for anomalies\npython3 \u003C\u003C 'PYEOF'\nprint(\"=== USER ACCOUNT ANALYSIS ===\\n\")\n\n# Parse \u002Fetc\u002Fpasswd\nwith open('\u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002Fpasswd') as f:\n    for line in f:\n        parts = line.strip().split(':')\n        if len(parts) >= 7:\n            username, _, uid, gid, comment, home, shell = parts[0], parts[1], int(parts[2]), int(parts[3]), parts[4], parts[5], parts[6]\n\n            # Flag accounts with UID 0 (root equivalent)\n            if uid == 0 and username != 'root':\n                print(f\"  ALERT: UID 0 account: {username} (shell: {shell})\")\n\n            # Flag accounts with login shells that shouldn't have them\n            if shell not in ('\u002Fbin\u002Ffalse', '\u002Fusr\u002Fsbin\u002Fnologin', '\u002Fbin\u002Fsync') and uid >= 1000:\n                print(f\"  User: {username} (UID:{uid}, Shell:{shell}, Home:{home})\")\n\n            # Flag system accounts with login shells\n            if uid \u003C 1000 and uid > 0 and shell in ('\u002Fbin\u002Fbash', '\u002Fbin\u002Fsh', '\u002Fbin\u002Fzsh'):\n                print(f\"  WARNING: System account with shell: {username} (UID:{uid}, Shell:{shell})\")\n\n# Parse \u002Fetc\u002Fshadow for account status\nprint(\"\\n=== PASSWORD STATUS ===\")\nwith open('\u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fconfig\u002Fshadow') as f:\n    for line in f:\n        parts = line.strip().split(':')\n        if len(parts) >= 3:\n            username = parts[0]\n            pwd_hash = parts[1]\n            last_change = parts[2]\n\n            if pwd_hash and pwd_hash not in ('*', '!', '!!', ''):\n                hash_type = 'Unknown'\n                if pwd_hash.startswith('$6$'): hash_type = 'SHA-512'\n                elif pwd_hash.startswith('$5$'): hash_type = 'SHA-256'\n                elif pwd_hash.startswith('$y$'): hash_type = 'yescrypt'\n                elif pwd_hash.startswith('$1$'): hash_type = 'MD5 (WEAK)'\n                print(f\"  {username}: {hash_type} hash, last changed: day {last_change}\")\nPYEOF\n\n# Analyze login history\nlast -f \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002Fwtmp > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Flogin_history.txt\nlastb -f \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Flogs\u002Fbtmp > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Ffailed_logins.txt 2>\u002Fdev\u002Fnull\n```\n\n### Step 3: Examine Persistence Mechanisms\n\n```bash\n# Check cron jobs for all users\necho \"=== CRON JOBS ===\" > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n\n# System cron\nfor cronfile in \u002Fmnt\u002Fevidence\u002Fetc\u002Fcrontab \u002Fmnt\u002Fevidence\u002Fetc\u002Fcron.d\u002F*; do\n    echo \"--- $cronfile ---\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    cat \"$cronfile\" 2>\u002Fdev\u002Fnull >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    echo \"\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\ndone\n\n# User cron tabs\nfor cronfile in \u002Fmnt\u002Fevidence\u002Fvar\u002Fspool\u002Fcron\u002Fcrontabs\u002F*; do\n    echo \"--- User crontab: $(basename $cronfile) ---\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    cat \"$cronfile\" 2>\u002Fdev\u002Fnull >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\n    echo \"\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fcron_analysis.txt\ndone\n\n# Check systemd services for persistence\necho \"=== SYSTEMD SERVICES ===\" > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\nfind \u002Fmnt\u002Fevidence\u002Fetc\u002Fsystemd\u002Fsystem\u002F -name \"*.service\" -newer \u002Fmnt\u002Fevidence\u002Fetc\u002Fos-release \\\n   >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\n\nfor svc in \u002Fmnt\u002Fevidence\u002Fetc\u002Fsystemd\u002Fsystem\u002F*.service; do\n    echo \"--- $(basename $svc) ---\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\n    cat \"$svc\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\n    echo \"\" >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fsystemd_analysis.txt\ndone\n\n# Check authorized SSH keys (backdoor detection)\necho \"=== SSH AUTHORIZED KEYS ===\" > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fssh_keys.txt\nfind \u002Fmnt\u002Fevidence\u002Fhome\u002F \u002Fmnt\u002Fevidence\u002Froot\u002F -name \"authorized_keys\" -exec sh -c \\\n   'echo \"--- {} ---\"; cat {}; echo \"\"' \\; >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fssh_keys.txt\n\n# Check rc.local and init scripts\ncat \u002Fmnt\u002Fevidence\u002Fetc\u002Frc.local 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Frc_local.txt\n\n# Check \u002Fetc\u002Fprofile.d\u002F for login-triggered scripts\nls -la \u002Fmnt\u002Fevidence\u002Fetc\u002Fprofile.d\u002F > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fprofile_scripts.txt\n\n# Check for LD_PRELOAD hijacking\ngrep -r \"LD_PRELOAD\" \u002Fmnt\u002Fevidence\u002Fetc\u002F 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fld_preload.txt\ncat \u002Fmnt\u002Fevidence\u002Fetc\u002Fld.so.preload 2>\u002Fdev\u002Fnull >> \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fpersistence\u002Fld_preload.txt\n```\n\n### Step 4: Analyze Shell History and Command Execution\n\n```bash\n# Analyze bash history for each user\npython3 \u003C\u003C 'PYEOF'\nimport os, glob\n\nprint(\"=== SHELL HISTORY ANALYSIS ===\\n\")\n\nsuspicious_commands = [\n    'wget', 'curl', 'nc ', 'ncat', 'netcat', 'python -c', 'python3 -c',\n    'perl -e', 'base64', 'chmod 777', 'chmod +s', '\u002Fdev\u002Ftcp', '\u002Fdev\u002Fudp',\n    'nmap', 'masscan', 'hydra', 'john', 'hashcat', 'passwd', 'useradd',\n    'iptables -F', 'ufw disable', 'history -c', 'rm -rf \u002F', 'dd if=',\n    'crontab', 'at ', 'systemctl enable', 'ssh-keygen', 'scp ', 'rsync',\n    'tar czf', 'zip -r', 'openssl enc', 'gpg --encrypt', 'shred',\n    'chattr', 'setfacl', 'awk', '\u002Ftmp\u002F', '\u002Fdev\u002Fshm\u002F'\n]\n\nfor hist_file in glob.glob('\u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fusers\u002F*\u002F.bash_history'):\n    username = hist_file.split('\u002F')[-2]\n    print(f\"User: {username}\")\n\n    with open(hist_file, 'r', errors='ignore') as f:\n        lines = f.readlines()\n\n    print(f\"  Total commands: {len(lines)}\")\n    flagged = []\n    for i, line in enumerate(lines):\n        line = line.strip()\n        for cmd in suspicious_commands:\n            if cmd in line.lower():\n                flagged.append((i+1, line))\n                break\n\n    if flagged:\n        print(f\"  Suspicious commands: {len(flagged)}\")\n        for lineno, cmd in flagged:\n            print(f\"    Line {lineno}: {cmd[:120]}\")\n    print()\nPYEOF\n```\n\n### Step 5: Check for Rootkits and Modified Binaries\n\n```bash\n# Check for known rootkit indicators\n# Compare system binary hashes against known-good\nfind \u002Fmnt\u002Fevidence\u002Fusr\u002Fbin\u002F \u002Fmnt\u002Fevidence\u002Fusr\u002Fsbin\u002F \u002Fmnt\u002Fevidence\u002Fbin\u002F \u002Fmnt\u002Fevidence\u002Fsbin\u002F \\\n   -type f -executable -exec sha256sum {} \\; > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fbinary_hashes.txt\n\n# Check for SUID\u002FSGID binaries (potential privilege escalation)\nfind \u002Fmnt\u002Fevidence\u002F -perm -4000 -type f 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fsuid_files.txt\nfind \u002Fmnt\u002Fevidence\u002F -perm -2000 -type f 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fsgid_files.txt\n\n# Check for suspicious files in \u002Ftmp and \u002Fdev\u002Fshm\nfind \u002Fmnt\u002Fevidence\u002Ftmp\u002F \u002Fmnt\u002Fevidence\u002Fdev\u002Fshm\u002F -type f 2>\u002Fdev\u002Fnull \\\n   -exec file {} \\; > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Ftmp_files.txt\n\n# Check for hidden files and directories\nfind \u002Fmnt\u002Fevidence\u002F -name \".*\" -not -path \"*\u002F\\.\" -type f 2>\u002Fdev\u002Fnull | \\\n   head -100 > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fhidden_files.txt\n\n# Check kernel modules\nls -la \u002Fmnt\u002Fevidence\u002Flib\u002Fmodules\u002F$(ls \u002Fmnt\u002Fevidence\u002Flib\u002Fmodules\u002F | head -1)\u002Fextra\u002F 2>\u002Fdev\u002Fnull \\\n   > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fextra_modules.txt\n\n# Check for modified PAM configuration (authentication backdoors)\ndiff \u002Fmnt\u002Fevidence\u002Fetc\u002Fpam.d\u002F \u002Fcases\u002Fbaseline\u002Fpam.d\u002F 2>\u002Fdev\u002Fnull \\\n   > \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002Fpam_changes.txt\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| \u002Fvar\u002Flog\u002Fauth.log | Primary authentication log on Debian\u002FUbuntu systems |\n| \u002Fvar\u002Flog\u002Fsecure | Primary authentication log on RHEL\u002FCentOS systems |\n| wtmp\u002Fbtmp | Binary logs recording successful and failed login sessions |\n| .bash_history | User command history file (can be cleared by attackers) |\n| crontab | Scheduled task system commonly used for persistence |\n| authorized_keys | SSH public keys granting passwordless access to an account |\n| SUID bit | File permission allowing execution as the file owner (privilege escalation vector) |\n| LD_PRELOAD | Environment variable that loads a shared library before all others (hooking technique) |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| chkrootkit | Rootkit detection scanner for Linux systems |\n| rkhunter | Rootkit Hunter - checks for rootkits, backdoors, and local exploits |\n| AIDE | Advanced Intrusion Detection Environment - file integrity monitor |\n| auditd | Linux audit framework for system call and file access monitoring |\n| last\u002Flastb | Parse wtmp\u002Fbtmp for login and failed login history |\n| Plaso\u002Flog2timeline | Super-timeline creation including Linux artifacts |\n| osquery | SQL-based system querying for live forensic investigation |\n| Velociraptor | Endpoint agent with Linux artifact collection capabilities |\n\n## Common Scenarios\n\n**Scenario 1: SSH Brute Force Followed by Compromise**\nAnalyze auth.log for failed SSH attempts followed by success, identify the attacking IP, check .bash_history for post-compromise commands, examine authorized_keys for added backdoor keys, check crontab for persistence, review network connections.\n\n**Scenario 2: Web Server Compromise via Application Vulnerability**\nExamine web server access and error logs for exploitation attempts, check \u002Ftmp and \u002Fdev\u002Fshm for webshells, analyze the web server user's activity (www-data), check for privilege escalation via SUID binaries or kernel exploits, review outbound connections.\n\n**Scenario 3: Insider Threat on Database Server**\nAnalyze the suspect user's bash_history for database dump commands, check for large tar\u002Fzip files in home directory or \u002Ftmp, examine scp\u002Frsync commands for data transfer, review cron jobs for automated exfiltration, check USB device logs.\n\n**Scenario 4: Crypto-Miner on Cloud Instance**\nCheck for high-CPU processes in \u002Fproc (live) or systemd service files, examine crontab entries for miner restart scripts, check \u002Ftmp for mining binaries, analyze network connections for mining pool communications, review authorized_keys for attacker access.\n\n## Output Format\n\n```\nLinux Forensics Summary:\n  System: webserver01 (Ubuntu 22.04 LTS)\n  Hostname: webserver01.corp.local\n  Kernel: 5.15.0-91-generic\n\n  User Accounts:\n    Total: 25 (3 with UID 0 - 1 ANOMALOUS)\n    Interactive shells: 8 users\n    Recently created: admin2 (created 2024-01-15)\n\n  Authentication Events:\n    Successful SSH logins: 456\n    Failed SSH attempts: 12,345 (from 23 unique IPs)\n    Sudo executions: 89\n\n  Persistence Mechanisms Found:\n    Cron jobs: 3 suspicious (reverse shell, miner restart)\n    Systemd services: 1 unknown (update-checker.service)\n    SSH keys: 2 unauthorized keys in root authorized_keys\n    rc.local: Modified with download cradle\n\n  Suspicious Activity:\n    - bash_history contains wget to pastebin URL\n    - SUID binary \u002Ftmp\u002F.hidden\u002Fescalate found\n    - \u002Fdev\u002Fshm\u002F contains compiled ELF binary\n    - LD_PRELOAD in \u002Fetc\u002Fld.so.preload pointing to \u002Flib\u002F.hidden.so\n\n  Report: \u002Fcases\u002Fcase-2024-001\u002Flinux\u002Fanalysis\u002F\n```\n",{"name":5,"tags":24,"author":31,"domain":32,"license":14,"version":33,"nist_csf":34,"subdomain":38,"description":7,"mitre_attack":39},[25,26,27,28,29,30],"forensics","linux-forensics","system-artifacts","log-analysis","persistence-detection","incident-investigation","mahipal","cybersecurity","1.0",[35,36,37],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[40,41,42,43],"T1070","T1059.004","T1543.002","T1053.003","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-linux-system-artifacts","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill analyzing-linux-system-artifacts",{"tool":56,"command":57},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill analyzing-linux-system-artifacts",{"tool":59,"command":60},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill analyzing-linux-system-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-linux-system-artifacts\u002FSKILL.md",true,[64,68,74],{"path":65,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fapi-reference.md","REFERENCE","参考文档",3491,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-linux-system-artifacts\u002Freferences\u002Fapi-reference.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fagent.py","SCRIPT","脚本",9952,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fanalyzing-linux-system-artifacts\u002Fscripts\u002Fagent.py",[81,89,96,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]