[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HE0KANZRMZW5ADEMBFVRCC":3,"skill-same:01M6HE0KANZRMZW5ADEMBFVRCC":102},{"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":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":6,"ownerHtmlUrl":68,"ownerBlogUrl":6,"ownerDescription":69,"updatedAt":70,"install":71,"resources":84},"01M6HE0KANZRMZW5ADEMBFVRCC","deploying-ransomware-canary-files",null,"Deploys and monitors ransomware canary files across critical directories using Python's watchdog library for real-time filesystem event detection. Places strategically named decoy files that mimic high-value targets (financial records,...","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdeploying-ransomware-canary-files\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ransomware","deploying ransomware canary files","canary","files","for","python","high","directories","event","targets","records","critical","across","time","filesystem","t1490","real-time","canary-files","pr","cybersecurity","2026-11-10 10:12:30",false,"---\nname: deploying-ransomware-canary-files\ndescription: Deploys and monitors ransomware canary files across critical directories using Python's watchdog library for real-time filesystem event detection. Places strategically named decoy files that mimic high-value targets (financial records,...\ndomain: cybersecurity\nsubdomain: ransomware-defense\ntags:\n- ransomware\n- canary-files\n- watchdog\n- detection\n- early-warning\n- deception\n- defense\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.DS-11\n- RS.MA-01\n- RC.RP-01\n- PR.IR-01\nmitre_attack:\n- T1486\n- T1083\n- T1490\n- T1485\ncategory: deploying-ransomware-canary-files\n---\n# Deploying-Ransomware-Canary-Files\n\n## Overview\nDeploys and monitors ransomware canary files across critical directories using Python's watchdog library for real-time filesystem event detection. Places strategically named decoy files that mimic high-value targets (financial records, credentials, database exports) in locations ransomware typically enumerates first. Monitors for any read, modify, rename, or delete operations on canary files and triggers immediate alerts via email, Slack webhook, or syslog when interaction is detected, providing early warning before full encryption begins.\n\n\n# Deploying Ransomware Canary Files\n\n## When to Use\n\n- Deploying proactive ransomware detection on file servers, NAS devices, or endpoint systems\n- Building an early-warning system that detects ransomware before it encrypts business-critical data\n- Supplementing EDR solutions with lightweight canary file monitoring on systems where agents cannot be deployed\n- Testing ransomware incident response procedures by simulating canary file triggers\n- Monitoring shared drives, home directories, and backup volumes for unauthorized file operations\n\n**Do not use** as a replacement for endpoint protection, backup strategy, or network segmentation. Canary files are a detection layer, not a prevention mechanism.\n\n## Prerequisites\n\n- Python 3.8+ with pip\n- watchdog library (pip install watchdog)\n- Write access to directories where canary files will be placed\n- SMTP server credentials or Slack webhook URL for alerting\n- Administrative access for placing canaries in system directories\n\n## Workflow\n\n### Step 1: Generate Canary Files\n\nCreate decoy files with realistic names and content that attract ransomware scanners. Files should have names like `Passwords.xlsx`, `Financial_Report_2026.docx`, `backup_credentials.csv` and contain plausible-looking but fake data. Place them in directories ransomware typically targets first: user desktops, Documents folders, network share roots, and backup paths.\n\n### Step 2: Deploy Filesystem Monitor\n\nUse Python's watchdog library with a custom `FileSystemEventHandler` that watches canary file paths. The handler triggers on `on_modified`, `on_deleted`, `on_moved`, and `on_created` events for canary files. Any legitimate user or process should never touch these files, so any interaction is a high-confidence indicator of ransomware or unauthorized access.\n\n### Step 3: Configure Alert Pipeline\n\nWire the filesystem monitor to multiple alert channels: email via SMTP, Slack webhook POST, syslog forwarding to SIEM, and local log file. Include the triggering event type, file path, timestamp, and process information (when available) in alert payloads.\n\n### Step 4: Validate and Test\n\nSimulate ransomware behavior by programmatically modifying, renaming, and deleting canary files to verify the detection pipeline fires correctly. Measure time-to-alert and validate alert delivery across all configured channels.\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Canary File** | A decoy file placed in a monitored directory that triggers an alert when accessed, modified, or deleted |\n| **Watchdog** | Python library that monitors filesystem events using OS-native APIs (inotify on Linux, FSEvents on macOS, ReadDirectoryChangesW on Windows) |\n| **Honey File** | Synonym for canary file; a fake document designed to attract and detect malicious activity |\n| **Entropy Check** | Measuring randomness in file content to detect encryption (ransomware produces high-entropy output) |\n\n## Tools & Systems\n\n- **watchdog**: Python filesystem monitoring library using OS-native event APIs\n- **smtplib**: Python standard library for SMTP email alerting\n- **requests**: HTTP library for Slack webhook integration\n- **hashlib**: SHA-256 hashing for canary file integrity verification\n- **psutil**: Process information gathering when canary file access is detected\n\n## Output Format\n\n```\nRANSOMWARE CANARY ALERT\n========================\nTimestamp: 2026-03-11T14:23:07Z\nEvent: FILE_MODIFIED\nCanary File: \u002Fsrv\u002Fshares\u002Ffinance\u002FPasswords.xlsx\nDirectory: \u002Fsrv\u002Fshares\u002Ffinance\nSHA-256 Before: a3f2...8b4c\nSHA-256 After: 7e91...2d3f\nAlert Channels: [email, slack, syslog]\nAction: Investigate immediately - potential ransomware activity\n```\n","# Deploying-Ransomware-Canary-Files\n\n## Overview\nDeploys and monitors ransomware canary files across critical directories using Python's watchdog library for real-time filesystem event detection. Places strategically named decoy files that mimic high-value targets (financial records, credentials, database exports) in locations ransomware typically enumerates first. Monitors for any read, modify, rename, or delete operations on canary files and triggers immediate alerts via email, Slack webhook, or syslog when interaction is detected, providing early warning before full encryption begins.\n\n\n# Deploying Ransomware Canary Files\n\n## When to Use\n\n- Deploying proactive ransomware detection on file servers, NAS devices, or endpoint systems\n- Building an early-warning system that detects ransomware before it encrypts business-critical data\n- Supplementing EDR solutions with lightweight canary file monitoring on systems where agents cannot be deployed\n- Testing ransomware incident response procedures by simulating canary file triggers\n- Monitoring shared drives, home directories, and backup volumes for unauthorized file operations\n\n**Do not use** as a replacement for endpoint protection, backup strategy, or network segmentation. Canary files are a detection layer, not a prevention mechanism.\n\n## Prerequisites\n\n- Python 3.8+ with pip\n- watchdog library (pip install watchdog)\n- Write access to directories where canary files will be placed\n- SMTP server credentials or Slack webhook URL for alerting\n- Administrative access for placing canaries in system directories\n\n## Workflow\n\n### Step 1: Generate Canary Files\n\nCreate decoy files with realistic names and content that attract ransomware scanners. Files should have names like `Passwords.xlsx`, `Financial_Report_2026.docx`, `backup_credentials.csv` and contain plausible-looking but fake data. Place them in directories ransomware typically targets first: user desktops, Documents folders, network share roots, and backup paths.\n\n### Step 2: Deploy Filesystem Monitor\n\nUse Python's watchdog library with a custom `FileSystemEventHandler` that watches canary file paths. The handler triggers on `on_modified`, `on_deleted`, `on_moved`, and `on_created` events for canary files. Any legitimate user or process should never touch these files, so any interaction is a high-confidence indicator of ransomware or unauthorized access.\n\n### Step 3: Configure Alert Pipeline\n\nWire the filesystem monitor to multiple alert channels: email via SMTP, Slack webhook POST, syslog forwarding to SIEM, and local log file. Include the triggering event type, file path, timestamp, and process information (when available) in alert payloads.\n\n### Step 4: Validate and Test\n\nSimulate ransomware behavior by programmatically modifying, renaming, and deleting canary files to verify the detection pipeline fires correctly. Measure time-to-alert and validate alert delivery across all configured channels.\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Canary File** | A decoy file placed in a monitored directory that triggers an alert when accessed, modified, or deleted |\n| **Watchdog** | Python library that monitors filesystem events using OS-native APIs (inotify on Linux, FSEvents on macOS, ReadDirectoryChangesW on Windows) |\n| **Honey File** | Synonym for canary file; a fake document designed to attract and detect malicious activity |\n| **Entropy Check** | Measuring randomness in file content to detect encryption (ransomware produces high-entropy output) |\n\n## Tools & Systems\n\n- **watchdog**: Python filesystem monitoring library using OS-native event APIs\n- **smtplib**: Python standard library for SMTP email alerting\n- **requests**: HTTP library for Slack webhook integration\n- **hashlib**: SHA-256 hashing for canary file integrity verification\n- **psutil**: Process information gathering when canary file access is detected\n\n## Output Format\n\n```\nRANSOMWARE CANARY ALERT\n========================\nTimestamp: 2026-03-11T14:23:07Z\nEvent: FILE_MODIFIED\nCanary File: \u002Fsrv\u002Fshares\u002Ffinance\u002FPasswords.xlsx\nDirectory: \u002Fsrv\u002Fshares\u002Ffinance\nSHA-256 Before: a3f2...8b4c\nSHA-256 After: 7e91...2d3f\nAlert Channels: [email, slack, syslog]\nAction: Investigate immediately - potential ransomware activity\n```\n",{"name":5,"tags":44,"author":50,"domain":38,"license":15,"version":51,"category":5,"nist_csf":52,"subdomain":57,"description":7,"mitre_attack":58},[19,36,45,46,47,48,49],"watchdog","detection","early-warning","deception","defense","mahipal","1.0.0",[53,54,55,56],"PR.DS-11","RS.MA-01","RC.RP-01","PR.IR-01","ransomware-defense",[59,60,61,62],"T1486","T1083","T1490","T1485","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fdeploying-ransomware-canary-files",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill deploying-ransomware-canary-files",{"tool":77,"command":78},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill deploying-ransomware-canary-files",{"tool":80,"command":81},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill deploying-ransomware-canary-files","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdeploying-ransomware-canary-files\u002FSKILL.md",true,[85,90,96],{"path":86,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdeploying-ransomware-canary-files\u002FLICENSE",{"path":91,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fapi-reference.md","REFERENCE","参考文档",2992,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdeploying-ransomware-canary-files\u002Freferences\u002Fapi-reference.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fagent.py","SCRIPT","脚本",21337,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdeploying-ransomware-canary-files\u002Fscripts\u002Fagent.py",[103,125,151,174,190,211],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[],[110,111,112,113,23,114,38,115,116,117,118,19,46,119,34,120,121,122,123,124],"integrity","backup","recovery","validating backup integrity for recovery","testing","validate","verification","hash-verification","incident-response","t1078","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[132,133,134,135,136,38,137,138,139,140,141,142,143,144,145,146,147,148,149,150],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","with","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[158,159,122,38,160,161,162,119,34,163,164,165,166,167,168,169,170,171,172,173],"security","triaging security incident","actions","soc","NIST","analysis","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[158,181,182,159,122,136,38,183,161,118,184,185,119,34,186,164,146,187,188,189],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[158,197,198,199,200,201,38,202,203,204,161,205,119,206,207,208,167,209,122,210],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review","cm","de",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":217,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[218,219,220,221,38,222,223,224,225,226,227,206,228,229,209,230,210,231,232,233],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]