Skip to content

Releases: avilum/secimport

0.7.2

09 Apr 20:15
9f99ff8
Compare
Choose a tag to compare
Create python-publish.yml

Added pypi deployment

0.7.1

09 Apr 19:33
9f99ff8
Compare
Choose a tag to compare
  • Added github deploy action

0.7.0

09 Apr 18:52
3d27973
Compare
Choose a tag to compare
  • Added Stop and Kill options
  • Added FastAPI example inside docker
  • Improved the CLI
  • Improved the README and overall documentation
  • Removed unused code / POC leftovers

The new usage I encourage is a follows:

pip install secimport==0.7.0

# Interactive quickstart
secimport interactive

FastAPI example

#!/bin/bash


echo "FastAPI Example"
echo "Tracing the main application, hit CTRL+C/CTRL+D when you are done."
/workspace/Python-3.10.0/python -m secimport.cli trace --entrypoint fastapi_main.py
/workspace/Python-3.10.0/python -m secimport.cli build
/workspace/Python-3.10.0/python -m secimport.cli run --entrypoint fastapi_main.py

Usage:

SecImport - A toolkit for Tracing and Securing Python Runtime using USDT probes and eBPF/DTrace: https://github.com/avilum/secimport/wiki/Command-Line-Usage

    QUICK START:
            >>> secimport interactive

    EXAMPLES:
        1. trace:
            $  secimport trace
            $  secimport trace -h
            $  secimport trace_pid 123
            $  secimport trace_pid -h
        2. build:
            # secimport build
            $ secimport build -h
        3. run:
            $  secimport run
            $  secimport run --entrypoint my_custom_main.py
            $  secimport run --entrypoint my_custom_main.py --stop_on_violation=true
            $  secimport run --entrypoint my_custom_main.py --kill_on_violation=true
            $  secimport run --sandbox_executable /path/to/my_sandbox.bt --pid 2884
            $  secimport run --sandbox_executable /path/to/my_sandbox.bt --sandbox_logfile my_log.log
            $  secimport run -h

0.5.0

13 Nov 12:27
5240e0a
Compare
Choose a tag to compare
  • Added bpftrace (ebpf) support
  • Added docker for bpftrace
  • Added tests

0.4.3

02 Sep 09:21
33ba839
Compare
Choose a tag to compare
  • Fixed unneeded imports that were not inside the dependencies list.

0.4.2

21 Aug 11:37
ce4b23b
Compare
Choose a tag to compare

Added pickle examples, improved logging and documentation

0.4.1

14 Aug 15:42
450de01
Compare
Choose a tag to compare
  • Minor bugfixes in Paths prints
  • More docs

0.4.0

14 Aug 15:24
7f88d5b
Compare
Choose a tag to compare

Version 0.4.0 adds the ability to generate profile from a YAML template.
For a full usage documentation, visit https://github.com/avilum/secimport/blob/master/docs/YAML_PROFILES.md

0.3.0

11 Jul 00:17
Compare
Choose a tag to compare
  • Added syscalls_allowlist argument that enables specifying specific syscalls only.
  • Improved examples
 module = secure_import(
            module_name="http",
            syscalls_allowlist="""
                                access
                                exit
                                getentropy
...

0.2.0

10 Jul 17:00
Compare
Choose a tag to compare

Added optional dtrace flag for destructive mode.
When set to False (default is True), the process will be killed but only logged.
destructive (bool, optional): Whether to kill the process with -9 sigkill upon violation of any of the configurations above. Defaults to True