[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74X0SQ216GCSBZ6V70BSW47":3,"skill-same:01M74X0SQ216GCSBZ6V70BSW47":74},{"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":38,"commitSha":39,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M74X0SQ216GCSBZ6V70BSW47","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, 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.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fdeploying-ransomware-canary-files\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fdeploying-ransomware-canary-files\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: deploying-ransomware-canary-files\ndescription: >\n  Deploys and monitors ransomware canary files across critical directories using\n  Python's watchdog library for real-time filesystem event detection. Places\n  strategically named decoy files that mimic high-value targets (financial records,\n  credentials, database exports) in locations ransomware typically enumerates first.\n  Monitors for any read, modify, rename, or delete operations on canary files and\n  triggers immediate alerts via email, Slack webhook, or syslog when interaction is\n  detected, providing early warning before full encryption begins.\ndomain: cybersecurity\nsubdomain: ransomware-defense\ntags: [ransomware, canary-files, watchdog, detection, early-warning, deception, defense]\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\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## 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":25,"author":33,"domain":34,"license":15,"version":35,"subdomain":36,"description":37},[26,27,28,29,30,31,32],"ransomware","canary-files","watchdog","detection","early-warning","deception","defense","mahipal","cybersecurity","1.0.0","ransomware-defense","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, 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","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill deploying-ransomware-canary-files",{"tool":50,"command":51},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill deploying-ransomware-canary-files",{"tool":53,"command":54},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill deploying-ransomware-canary-files","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fdeploying-ransomware-canary-files\u002FSKILL.md",true,[58,62,68],{"path":59,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fapi-reference.md","REFERENCE","参考文档",2992,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fdeploying-ransomware-canary-files\u002Freferences\u002Fapi-reference.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fagent.py","SCRIPT","脚本",21337,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fdeploying-ransomware-canary-files\u002Fscripts\u002Fagent.py",[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]