Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
LSMS — Linux Security and Monitoring Scripts | Kitploit
Tools/GitHubGitHub/sqall01/lsms
Defensive ToolsScripting & AutomationForensicsIntrusion DetectionIncident Response
GitHubsqall01/lsms

LSMS

Linux Security and Monitoring Scripts

View Repository
33046531 year agoReviewed by Kitploit
Share

Linux Security and Monitoring Scripts

These are a collection of security and monitoring scripts you can use to monitor your Linux installation for security-related events or for an investigation. Each script works on its own and is independent of other scripts. The scripts can be set up to either print out their results, send them to you via mail, or using AlertR as notification channel.

Repository Structure

The scripts are located in the directory scripts/. Each script contains a short summary in the header of the file with a description of what it is supposed to do, how to interpret the detection result if not unequivocally and known issues. If it has dependencies that have to be installed they are also listed, as well as references to where the idea for this script stems from (if available).

Each script has a configuration file in the scripts/config/ directory to configure it. If the configuration file was not found during the execution of the script, the script will fall back to default settings and print out the results. Hence, it is not necessary to provide a configuration file.

The scripts/lib/ directory contains code that is shared between different scripts.

Scripts using a monitor_ prefix hold a state and are only useful for monitoring purposes. A single usage of them for an investigation will only result in showing the current state the Linux system and not changes that might be relevant for the system's security. If you want to establish the current state of your system as benign for these scripts, you can provide the --init argument.

Scripts using a search_ prefix search for indicators of a compromise. These can be used for investigation purposes. If you want to use them for monitoring purposes, you can provide the --monitoring argument to hold a state and only output new findings.

Usage

Take a look at the header of the script you want to execute. It contains a short description what this script is supposed to do and what requirements are needed (if any needed at all). If requirements are needed, install them before running the script.

The shared configuration file scripts/config/config.py contains settings that are used by all scripts. Furthermore, each script can be configured by using the corresponding configuration file in the scripts/config/ directory. If no configuration file was found, a default setting is used and the results are printed out.

Finally, you can run all configured scripts by executing start_search.py (which is located in the main directory) or by executing each script manually. A Python3 interpreter is needed to run the scripts.

Monitoring

If you want to use the scripts to monitor your Linux system constantly, you have to perform the following steps:

  1. Set up a notification channel that is supported by the scripts (currently printing out, mail, or AlertR).

  2. Configure the scripts that you want to run using the configuration files in the scripts/config/ directory.

  3. Execute start_search.py with the --init argument to initialize the scripts with the monitor_ prefix and let them establish a state of your system. However, this assumes that your system is currently uncompromised. If you are unsure of this, you should verify its current state.

  4. Set up a cron job as root user that executes start_search.py --monitoring (e.g., 0 * * * * root /opt/LSMS/start_search.py --monitoring to start the search hourly). The --monitoring argument let the scripts only report new findings and thus prevent them from constantly reporting the same issue.

List of Scripts

NameScript
Monitoring cron filesmonitor_cron.py
Monitoring /etc/hosts filemonitor_hosts_file.py
Monitoring /etc/ld.so.preload filemonitor_ld_preload.py
Monitoring /etc/passwd filemonitor_passwd.py
Monitoring modulesmonitor_modules.py
Monitoring SSH authorized_keys filesmonitor_ssh_authorized_keys.py
Monitoring systemd unit filesmonitor_systemd_units.py
Search running deleted programssearch_deleted_exe.py
Search executables in /dev/shmsearch_dev_shm.py
Search hidden ELF filessearch_hidden_exe.py
Search immutable filessearch_immutable_files.py
Search lastlog entries missing in utmp logssearch_lastlog_in_utmp.py
Search fileless programs (memfd_create)search_memfd_create.py
Search kernel thread impersonationssearch_non_kthreads.py
Search processes that were started by a now disconnected SSH sessionsearch_ssh_leftover_processes.py
Search kernel module taint flags for suspicious combinationssearch_tainted_modules.py
Search indicators the utmp logs were tampered withsearch_utmp_tampering.py
Test script to check if alerting workstest_alert.py
Verify integrity of installed .deb packagesverify_deb_packages.py
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    795
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    520
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    439
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    346
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    267
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    264

Explore all tools

Browse our collection of tools

View all tools →