Skip to main content

Menoa

Menoa is a modern, scriptable security tool designed solely for Linux. Its goal is to provide robust malware detection and system monitoring, following Linux principles.. Menoa is not a vulnerability scanner, but a focused security companion for everyday system safety. It's the Linux version of Microsoft Defender, not Lynis

CURRENTLY UNDER DEVELOPMENT. NOT IN A USABLE STATE YET

Utilities

It is made up of six main tools,

  • ClamAV-powered Antivirus
    • Provides a CLI and GUI frontend for ClamAV, the most popular open source antivirus*
  • YARA Rule Scanning
    • Scans files with YARA rules using YARA-X, which supports the whole YARA language (ClamAV's own YARA support skips modules like elf and pe). Runs on its own (menoa yara scan) or together with ClamAV (menoa scan, and the main buttons on the GUI's Malware Scanning page). Add rule feeds with menoa yara add --index myrules --name "My rules" --description "..." --url https://example.org/rules.yar, or --local-path for a rule file of your own
    • Every scan uses all configured ClamAV and YARA feeds unless you pick some: --feed <index or file> (repeatable) scans with only those, --level quick|standard|deep with the feeds up to that level. Give a feed a level with --level when adding it (menoa clam add/menoa yara add), a feed without one is quick and in every level. The GUI's "Scan with" picker does the same, and both list the feeds a scan uses
  • Network Connection Endpoint scanning
    • Compares outgoing IP address connections against lists of known malicious endpoints*
  • Machine Learning Driven Process Classification (beta)
    • Not AI bloat, but an intelligent, lightweight way to detect running malware. Work is ongoing and is currently unusable
  • Bash Parser (beta)
    • Takes an input bash script and explains what the script does in English. Allows the input of remote scripts (aimed as install.sh scripts)
  • Binary Attestation
    • Verifies the hashes of local system binaries with an api providing known good hashes

* The threat intelligence are driven by feeds provided by open source feeds collated by Menoa

Network Threat Feeds

Menoa's default feed is just one source, you can add or replace feeds with anything that serves IP addresses. Each feed in ~/.menoa/config.toml has a format:

Format Needs Source
plain url One IP (or URL with an IP host) per line, # starts a comment. Any static file host works
csv url, column A CSV, column is a header name or a 0-based column number
misp url, api_key_env A MISP server, Menoa pulls ip-src/ip-dst attributes marked for IDS from published events, minus anything on enabled warninglists
command command Any command that prints one indicator per line, for TAXII, vendor APIs, or your own scripts

url can also be a local path. Values that aren't valid IPs are dropped.

menoa network add --index mine --name "My feed" --description "Internal blocklist" --format plain --url https://example.org/ips.txt
menoa network add --index corp --name "Corp MISP" --description "Our MISP" --format misp --url https://misp.corp.example --api-key-env MENOA_MISP_KEY
menoa network add --index feodo --name "Feodo Tracker" --description "abuse.ch botnet C2 IPs" --format csv --url https://feodotracker.abuse.ch/downloads/ipblocklist.csv --column dst_ip
menoa network reload

To write your own server, serve a plain file.

Hosting feeds with less bandwidth

  • Menoa sends the ETag/Last-Modified it got last time, so an unchanged file costs a tiny 304 Not Modified. nginx and S3-style object storage do this on their own
  • Files served with Content-Encoding: gzip are decompressed by Menoa. For object storage, upload the gzipped file with that header, e.g. gzip -9k main.txt && s3cmd put --add-header="Content-Encoding: gzip" --mime-type=text/plain main.txt.gz s3://<bucket>/network/main.txt
  • Your own process model's model_url can end in .xz, it's decompressed (xz -9k model.pkl, about 6x smaller). Its signature stays at model.pkl.sig

Process Models

Menoa's own model ships inside Menoa (new models come with Menoa updates), and it's checked against a hash in Menoa's code before it's loaded, since loading a model runs code from it. To use your own model:

menoa process model ./my_model.pkl     # A local path or a URL, loaded unsigned since you chose it (scans point this out, -q hides it)
menoa process model --default          # Back to Menoa's model

To publish a model for other people, sign it so they only load your exact file:

menoa process keygen ~/menoa-model.key        # Prints your public key, keep the private key offline
menoa process sign model.pkl --key ~/menoa-model.key

Serve model.pkl and model.pkl.sig side by side. Users run menoa process model https://example.org/model.pkl --public-key <key>, or set model_url and model_public_key in the [process] section of ~/.menoa/config.toml.

Software Principles

Menoa is made specifically for Linux, and it follows the very important principles of the OS that users demand

  • Needs to get out of the way
  • Focus on intelligent, important features and minimal bloat
  • Scriptable

To Install

Linux

  1. Install with pip: pip install menoa

  2. Install ClamAV with your package manager: sudo apt install clamav, sudo dnf install clamav, sudo pacman -S clamav

  3. Run menoa init, or just open menoa-gui, which sets itself up on first launch. This creates ~/.menoa and downloads the ClamAV signature databases (a few hundred MB), so the first run takes a few minutes

  4. Run menoa status to see which tools are turned on and how often they run, and menoa <tool> toggle to turn one on or off

Windows

  1. Switch to Linux

  2. See the steps for Linux installation

Roadmap:

Big changes:

  • Add a clock to have Menoa run in the background (probably with systemd)
    • A systemctl --user timer running the CLI, no root. Each tool's delay is already in the config (scan_delay, feed_update_delay)
    • Idea from the old clock.py: ClamAV's signatures use a lot of memory, so background scans could use a small, broad dataset and only rescan matching files with the full one
  • Add feed management to the GUI

Small changes:

  • Resolve local ip addresses connected to by processes and compare to urls distributed in threat feeds
  • Find a better threat feed for urls, I think they can be smaller and more specific to these needs, also I think this feeds might only be for malware distribution and not contain things like c&c servers (https://urlhaus.abuse.ch/api/#csv)
  • Should network monitoring include ipv6? Right now it doesn't
  • When clamav scanning is running, the progress % text line should be in the middle of the circle
  • Right now ClamAV just uses the official source but you can load your own yara rules, we could make our own threat feed for yara rules combining other sources
  • Add ability to run attestation after /bin and associated dirs are changed (after a package update)
  • Add ability to scan with clam using a specified feed (cli and gui)
  • Should you be able to determine how often a feed should update in the config?
  • In GUI be able to stop a scan mid scan without having to close the window
  • Any malware that tampers with a binary could also change its hash value in the database (the local database that marks a binary as attested), add a method of signing the hashes received from the api with a key from Menoa
  • Change the load template button on the command page be a button that pops up an input box for you to put a link to a bash file, it downloads and analyzes (meant for install.sh files)
  • Make the dashboard, left column, and overall qss (including unified colors and icon) better
  • Add comments, clean up code
  • Right now the attestation get package version function only uses pacman, add more package managers
  • Update the last_checked column in the attestation database
  • Pip doesn't automatically update, add an opt-in setting to have Menoa update itself automatically in the background
  • Get rid of quick/, standard/, and deep/ directories in favor of using the config to determine which feeds to use for each scan
  • Add option to do different types of scans in the GUI
  • Add util to completely redownload feeds, getting rid of past feed signatures
  • Process scanning returns processes above the threshold as beningn, but only some
  • Add a status option for cli tools to see whether background work is on or off
  • Right now when the process scanning model or the attestation table isn't found it is automatically downloaded without user interact, should this stay like this?
  • Running a clam scan, the progress circle fills up and progresss says 100% before scanning is complete (files: 153, nested files: 10027), could be an error in the counting of nested files for total files to scan for progress bar
  • Make opening the gui faster
  • Across all tools, make all options available with the cli also available in the gui
    • Still CLI only: adding, removing and listing feeds (see "Add feed management to the GUI"), reloading a single feed, process keygen/sign (for whoever publishes models) and fix (deletes ~/.menoa)
  • Attestation versioning isn't working
  • Set up attestation api
  • Write more info for learn more buttons on the dashboard
  • Have instructions to install clamav when not detected, fail gracefully when its not installed

Written by Jack Hagen

Metadata

Release files for menoa 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for menoa 0.7.0
File Size Uploaded Provenance Actions
menoa-0.7.0.tar.gz 7.1 MB Without provenance Details for menoa-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for menoa 0.7.0
File Interpreter ABI Platform Actions
menoa-0.7.0-py3-none-any.whl Python 3 none any Details for menoa-0.7.0-py3-none-any.whl

Total release size: 14.2 MB

Release files / menoa-0.7.0.tar.gz

Download URL menoa-0.7.0.tar.gz
Size 7.1 MB
Tags Source
SHA-256 checksum
How to use checksums
457b3d525704f0d2f8a449abe6ad6acf97ab9c0b25d8853ba2b4135830d93c08
BLAKE2b-256 checksum
How to use checksums
8e2a7a804ea3c919332733c4bfd1d732d9e5c9a82a76cc0271ba3add0f1fb7e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / menoa-0.7.0-py3-none-any.whl

Download URL menoa-0.7.0-py3-none-any.whl
Size 7.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4aced7566eb3317302479230d93a98f369004c908da92b0bd8d2938c28733ad2
BLAKE2b-256 checksum
How to use checksums
25d070fbb3d569532570a35ce11c850005a141baa8af5b9181fdd2cbb193857a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for menoa 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page