An open API service indexing awesome lists of open source software.

https://github.com/cybersecurity-dev/let

Event Tracing for Linux
https://github.com/cybersecurity-dev/let

linux linux-event-log linux-event-logs linux-eventlog tracing

Last synced: 4 months ago
JSON representation

Event Tracing for Linux

Awesome Lists containing this project

README

          





# **LET** | _Event Tracing for Linux_
[![made-with-python](http://forthebadge.com/images/badges/made-with-python.svg)](https://www.python.org/)
[![open-source](https://forthebadge.com/images/badges/open-source.svg)](https://cyberthreatdefence.com/)

LET is a tracing facility that allows a user to log events to a file (_JSON, XML, CSV_)


GitHub
 
YouTube
 
My Awesome Lists

Install required tools on Linux

### For Ubuntu 18.04, 20.04, 22.04

```bash
sudo apt-get update
sudo apt-get install -y libtraceevent-dev \
libtracefs-dev
```

Install required python libs

### pip install
```bash
pip install -r requirements.txt
python3 setup.py install
```

### conda install
```bash
conda config --add channels conda-forge
conda install --file requirements_conda.txt
python3 setup.py install
```

## Common Linux Kernel Event Types

| **Event Type** | **Description** | **Subsystem / Use Case** |
|----------------------|------------------------------------------------------------------------------|------------------------------------|
| `IN_ACCESS` | File was accessed | inotify |
| `IN_MODIFY` | File was modified | inotify |
| `IN_ATTRIB` | Metadata changed (e.g., permissions, timestamps) | inotify |
| `IN_CLOSE_WRITE` | File opened for writing was closed | inotify |
| `IN_CLOSE_NOWRITE` | File not opened for writing was closed | inotify |
| `IN_OPEN` | File was opened | inotify |
| `IN_MOVED_FROM` | File moved out of watched directory | inotify |
| `IN_MOVED_TO` | File moved into watched directory | inotify |
| `IN_CREATE` | File/directory created in watched directory | inotify |
| `IN_DELETE` | File/directory deleted in watched directory | inotify |
| `IN_DELETE_SELF` | Watched file/directory was itself deleted | inotify |
| `IN_MOVE_SELF` | Watched file/directory was itself moved | inotify |
| `EPOLLIN` | File descriptor is ready for read | epoll |
| `EPOLLOUT` | File descriptor is ready for write | epoll |
| `EPOLLERR` | Error condition on file descriptor | epoll |
| `EPOLLHUP` | Hang up happened on the associated file descriptor | epoll |
| `FAN_ACCESS` | File was accessed | fanotify |
| `FAN_MODIFY` | File was modified | fanotify |
| `FAN_CLOSE_WRITE` | Writable file was closed | fanotify |
| `FAN_CLOSE_NOWRITE` | Unwritable file was closed | fanotify |
| `FAN_OPEN` | File was opened | fanotify |
| `FAN_EVENT_ON_CHILD` | Events occurred on a child of the watched directory | fanotify |
| `KEY_PRESS` | Key was pressed | input subsystem (`/dev/input`) |
| `KEY_RELEASE` | Key was released | input subsystem (`/dev/input`) |
| `REL_X`, `REL_Y` | Relative mouse movement | input subsystem |
| `ABS_X`, `ABS_Y` | Absolute pointer position | input subsystem |
| `AUDIT_SYSCALL` | System call event | auditd / kernel audit subsystem |
| `NETLINK_ROUTE` | Network interface changes (e.g., link up/down) | netlink |

##

### Contributing

[Contributions of any kind welcome, just follow the guidelines](contributing.md)!

### Contributors

[Thanks goes to these contributors](https://github.com/cybersecurity-dev/LET/graphs/contributors)!

[🔼 Back to top](#let--event-tracing-for-linux)