hunting-persistence-on-linux
Hunts for Linux persistence by inspecting cron, systemd units, shell rc files, SSH
v1.0.03 התקנות+3 ב-7 ימים24 כוכביםApache-2.0סונכרן לפני 10 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/hunting-persistence-on-linuxנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילהd950ebfa…62393885
d950ebfa89cb…e573623938854 קבצים · 3.0 KBסריקהבינוני6 ממצאים
- command.pipe_to_shellSKILL.md:58
- command.base64_execSKILL.md:58
- command.pipe_to_shellreferences/api-reference.md:26
מקורgithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/hunting-persistence-on-linux@da7600a
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
When to Use
- You have collected Linux persistence-relevant files (cron entries, systemd units, shell rc
files,
authorized_keys, autostart) and want to flag suspicious entries. - You are triaging a suspected compromised Linux host's persistence surface.
Do not use this on a live root shell as a substitute for proper IR collection — feed it collected copies. It reads files statically and executes nothing.
Prerequisites
- Collected persistence artifacts (cron files, unit files, rc files,
authorized_keys).
Safety & Handling
- Read files statically; treat their contents as untrusted.
Workflow
Step 1: Scan persistence files
python scripts/analyst.py scan /path/to/collectedRecursively scans known persistence locations and flags entries containing download/exec patterns
(curl|wget ... | sh, base64 -d | bash, reverse-shell one-liners, nc -e), suspicious paths
(/tmp, /dev/shm), and unexpected authorized_keys additions.
Step 2: Categorize by mechanism
Group findings by mechanism: cron, systemd, rc/profile, SSH keys, autostart.
Step 3: Confirm
Compare against a known-good baseline of expected services/keys; investigate deviations.
Step 4: Document
Record each persistence entry, its mechanism, and the suspicious indicator.
Validation
- Findings are grouped by persistence mechanism.
- Reverse-shell/download-exec one-liners are flagged with the matched pattern.
authorized_keysadditions are surfaced for review.
Pitfalls
- Legitimate admin cron/systemd entries — baseline before alerting.
- Persistence in less-common spots (udev, PAM, LD_PRELOAD) not covered by basic scans.
- Encoded/obfuscated payloads hiding the true command.
References
- See
references/api-reference.mdfor the scanner. - ATT&CK T1543.002 and T1053.003 (linked in frontmatter).
הקבצים בגרסה הזו
references/11.2 KB
- api-reference.md1.2 KB
scripts/12.8 KB
- analyst.py2.8 KB
- LICENSE340 B
- SKILL.md2.7 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | כן | כן |
| משתמש ברשת | כן | כן |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- בינוניתפקודה · command.pipe_to_shellSKILL.md:58
- בינוניתפקודה · command.base64_execSKILL.md:58
- בינוניתפקודה · command.pipe_to_shellreferences/api-reference.md:26
- בינוניתפקודה · command.base64_execreferences/api-reference.md:26
- בינוניתקובץ · סקריפט הרצה שמגיע עם הסקילscripts/analyst.py
- מידעקישור · קישורים לדומיינים חיצוניים
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v1.0.0 | 13 בנוב׳ 2026 | da7600a | d950ebfa | חתומה | – |
עוד מ-meltedinhex
הכול מהמפרסם הזה- writing-yara-rules-from-reversed-codemeltedinhex/writing-yara-rules-from-reversed-code4
- validating-detections-with-atomic-testsmeltedinhex/validating-detections-with-atomic-tests4
- writing-suricata-and-snort-rulesmeltedinhex/writing-suricata-and-snort-rules3
- writing-sigma-detection-rulesmeltedinhex/writing-sigma-detection-rules3
עוד בקטגוריה Linux, ענן וקונטיינרים
לקטגוריה- detecting-aws-credential-exposure-with-trufflehogmukul975/detecting-aws-credential-exposure-with-trufflehog5
- cloud-gcpnoorqureshi/cloud-gcp4
- container-image-hardeningsecurityskills/container-image-hardening3
- performing-cloud-incident-containment-proceduresmukul975/performing-cloud-incident-containment-procedures3
- implementing-taxii-server-with-opentaxiimukul975/implementing-taxii-server-with-opentaxii3
- detecting-cryptomining-in-cloudmukul975/detecting-cryptomining-in-cloud3
שאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login