{"id":49529860,"url":"https://github.com/dimaskiddo/lmd-ng","last_synced_at":"2026-05-02T06:02:36.851Z","repository":{"id":354332080,"uuid":"1222665381","full_name":"dimaskiddo/lmd-ng","owner":"dimaskiddo","description":"Linux Malware Detect Next Generation (LMD-NG) a Vibe Code Golang Rewrite from the Original LMD/MalDet","archived":false,"fork":false,"pushed_at":"2026-04-28T04:54:50.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-28T06:28:55.509Z","etag":null,"topics":["clamav","detect","golang","linux","lmd","maldet","malware","malware-detection","rewrite","vibecode"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimaskiddo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-27T15:31:00.000Z","updated_at":"2026-04-28T04:54:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dimaskiddo/lmd-ng","commit_stats":null,"previous_names":["dimaskiddo/lmd-ng"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dimaskiddo/lmd-ng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaskiddo%2Flmd-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaskiddo%2Flmd-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaskiddo%2Flmd-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaskiddo%2Flmd-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimaskiddo","download_url":"https://codeload.github.com/dimaskiddo/lmd-ng/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaskiddo%2Flmd-ng/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32524565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clamav","detect","golang","linux","lmd","maldet","malware","malware-detection","rewrite","vibecode"],"created_at":"2026-05-02T06:02:30.922Z","updated_at":"2026-05-02T06:02:36.842Z","avatar_url":"https://github.com/dimaskiddo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ Linux Malware Detect Next Generation (LMD-NG)\n\nWelcome to the future of multi-platform security! **LMD-NG** is a complete, ground-up rewrite of the legendary **Linux Malware Detect (LMD/MalDet)**. While the original LMD was built specifically for Linux, **LMD-NG** brings that same battle-tested logic to **Windows** and **macOS**, supercharged with the speed, safety, and modern features of **Pure Golang**! 🐹✨\n\nWhether you're protecting a high-traffic server, a personal workstation, or a fleet of cloud instances, LMD-NG is designed to be your lightweight, lightning-fast, and cross-platform guardian. With **real-time email alerts** and **automated quarantine**, you can rest easy knowing your systems are protected across all major operating systems! 🦾\n\n---\n\n## ✨ Why LMD-NG?\n\n*   **⚡ Blazing Performance:** Rewritten in Pure Go for maximum efficiency and minimal resource footprint.\n*   **📦 Zero Dependencies:** Compiled with `CGO_ENABLED=0`. It's a single static binary that just *works*.\n*   **🌍 Truly Cross-Platform:** Breaking free from the Linux-only roots of the original LMD, LMD-NG runs natively on **Windows**, **macOS**, and **Linux**! 🚀\n*   **🕵️ Real-Time Protection:** Native file system monitoring (using `fsnotify`) catches threats the moment they land.\n*   **🔄 Modern Signature Updates:** Seamlessly pulls the latest threat definitions to keep you safe.\n*   **🦠 Native ClamAV Support:** Built-in loader for ClamAV databases with **zero** `libclamav` dependency. Access a massive signature library natively! \n*   **🛠️ Service Integration:** Easily install/uninstall as a system service with a single command.\n*   **🔒 Secure Quarantine:** Safely isolates threats with optional AES encryption to prevent accidental execution.\n*   **📧 Email Notifications:** Get instant HTML-formatted alerts when malware is detected. Supports SMTP with SSL/TLS.\n*   **📊 Structured Logging:** Clean, modern logs using Go's `slog` for better observability.\n\n---\n\n## 🚀 Getting Started\n\nGetting up and running with LMD-NG is as easy as a breeze! 🌬️\n\n### 📋 Prerequisites\n\n*   **Go** (1.21+ recommended) - The engine under the hood.\n*   **Make** - For automated building magic.\n*   **GoReleaser** (Optional) - For building your own mass distributions.\n\n---\n\n## 🛠️ Deployment\n\n### 🐳 **Using Container**\n\nReady to containerize your security? We've got you covered!\n\n1.  **Install Docker** following the [official guide](https://docs.docker.com/get-docker/).\n2.  **Fire it up!**\n    ```sh\n    docker run -d \\\n      -v \u003cPATH_TO_CONFIG_YAML_FILE\u003e:/usr/app/lmd-ng/config.yaml \\\n      -v \u003cPATH_TO_BE_SCANNED_OR_MONITORED\u003e:/data:rw \\\n      --name lmd-ng \\\n      --restart unless-stopped \\\n      dimaskiddo/lmd-ng:latest \\\n      lmd-ng daemon --config /usr/app/lmd-ng/config.yaml\n    ```\n\n### 📦 **Using Pre-Built Binaries**\n\nSpeed is of the essence! Grab a pre-built binary and go.\n\n1.  Download the latest release from our [Releases Page](https://github.com/dimaskiddo/lmd-ng/releases).\n2.  **Extract and Run:**\n    ```sh\n    # Give it execution power!\n    chmod +x lmd-ng\n\n    # Check version\n    ./lmd-ng version\n\n    # Run first database signature update\n    ./lmd-ng update\n    \n    # Start the daemon\n    ./lmd-ng daemon\n    ```\n\n### 🏗️ **Build From Source**\n\nFor the true crafters who love to build their own tools:\n\n1.  **Clone the repository:**\n    ```sh\n    git clone https://github.com/dimaskiddo/lmd-ng.git\n    cd lmd-ng\n    ```\n2.  **Install dependencies:**\n    ```sh\n    make vendor\n    ```\n3.  **Build the magic:**\n    ```sh\n    make build\n    ```\n4.  **Find your binary** in the `dist/` directory! 🎉\n\n---\n\n## 🕹️ Usage \u0026 Commands\n\nLMD-NG comes with a powerful CLI. Here are the most common commands:\n\n*   **`lmd-ng daemon`**: Start the resident monitor and internal scheduler. 💂‍♂️\n*   **`lmd-ng scan \u003cpath\u003e`**: Perform a manual, on-demand scan of a specific directory. 🔍\n*   **`lmd-ng update`**: Manually trigger a signature database update. 🔄\n*   **`lmd-ng quarantine list`**: List all files currently in quarantine. 📋\n*   **`lmd-ng quarantine add \u003cfile\u003e`**: Manually move a suspicious file to quarantine. 📥\n*   **`lmd-ng quarantine restore \u003cid|path\u003e`**: Restore a file from quarantine to its original location. 📤\n*   **`lmd-ng quarantine remove \u003cid|path\u003e`**: Permanently delete a quarantined file (requires `--force`). 🗑️\n*   **`lmd-ng service install`**: Automatically register LMD-NG as a background service (supports Windows Services, macOS Launchd, and Linux Systemd/Upstart). ⚙️\n*   **`lmd-ng service uninstall`**: Cleanly remove the system service. 🧹\n*   **`lmd-ng version`**: Display the version information. ℹ️\n\n---\n\n## 🧪 Running The Tests\n\nWe take security seriously! Run the tests to ensure everything is perfect:\n```sh\ngo test ./...\n```\n*(Note: Integration tests validate the compiled binary in `dist/` for real-world accuracy!)*\n\n---\n\n## 🏗️ Built With Love \u0026 Power\n\n*   **[Go](https://golang.org/)** - The legendary programming language.\n*   **[Cobra](https://github.com/spf13/cobra)** - Modern CLI framework.\n*   **[fsnotify](https://github.com/fsnotify/fsnotify)** - Cross-platform file system watcher.\n*   **[kardianos/service](https://github.com/kardianos/service)** - Multi-platform service manager.\n\n---\n\n## ✍️ Authors\n\n*   **Dimas Restu Hidayanto** - *Initial Work \u0026 Architecture* - [DimasKiddo](https://github.com/dimaskiddo)\n\nLove this project? Give it a ⭐ and help us grow!\n\n---\n\n## ⚖️ License\n\nCopyright (C) 2026 Dimas Restu Hidayanto.\n\nDistributed under the **MIT License**. See `LICENSE` for more information.\n\n---\n**LMD-NG** — *Next Generation Security for a Modern World.* 🛡️🌐\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaskiddo%2Flmd-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimaskiddo%2Flmd-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaskiddo%2Flmd-ng/lists"}