Memfini
A Systemwide memory monitoring interface for linux
Install / Use
/learn @anoixesecurity/MemfiniREADME
memfini (Version 0.1 alpha)
A Systemwide memory related events monitoring interface for linux.<br/> Memfini is capable of monitoring memory allocations on User space, Kernel space as well as some under looked allocations like PCI device mapping etc. It provides a command line interface with multiple filters, allowing a user to interact with the logs generated & get the required data. Currently, the user will be able to filter the events by individual process, type of access etc.<br/>
Read More about usage on wiki here: wiki link
System Requirement
Current version is supported on Linux kernel Version > 5.2.0.<br/> Tested on Ubuntu 20.04 LTS and Debian Buster
Usage
- Run
./install.sh installfor installation - Start Memfini by running
memfini --start
Upon starting, Memfini will start logging all the supported events & will be logged in /var/log/memfini.log. Memfini provides basic filters, which can be used to extract required information from the log file.
Note - Kernel memory monitoring is disabled by default. To enable it, change the value of DKERNEL_MONITOR=1 in Makefile <br/><br/>
Supported filters -
- PID
- Process Name
- Shared Memory
- Kernel Memory
- Foreign Process
Examples - <br>
memfini --pid 123<br>
memfini --pname procname
<br/>
<br/>
Screenshots
<br/>
NOTE - Remember to stop memfini (memfini --stop), to avoid excessive disk space usage.
Uninstall -
- Run
./install.sh uninstallfor removing Memfini.
Warning - This will remove all the logs, recommended to backup.
Featured
Memfini is featured in defcon 30:
Related Skills
tmux
342.0kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
blogwatcher
342.0kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
product
Cloud-agnostic Kubernetes infrastructure with Terraform & Helm for homelabs, edge, and production clusters.
Unla
2.1k🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
