Skip to main content

OpenBSM-Python

Binding OpenBSM library for MacOS using Python

Install

clone this project and use pip3

pip3 install openbsm

Features

  • Read /var/audit/files like a praudit

    sudo python3 -m bsm.bin.praudit /dev/auditpipe

    or after install

    sudo pyaudit /dev/auditpipe

    Output example:

    header,173,11,ioctl(2),0,Thu Nov 21 18:05:36 2019, + 253 msec
    argument,2,0x40084106,cmd
    argument,3,0x7ffee20df4a0,arg
    path,/dev/auditpipe
    argument,1,0x4,fd
    attribute,8576,0,0,1202303120,320,184549377
    subject,jhchoi,root,wheel,root,wheel,81615(/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python),100007,50331650,0.0.0.0
    return,success,0
    identity,0,,complete,,complete,0x
    trailer,173
    header,173,11,ioctl(2),0,Thu Nov 21 18:05:36 2019, + 253 msec
    argument,2,0x40044105,cmd
    argument,3,0x7ffee20df4a0,arg
    path,/dev/auditpipe
    argument,1,0x4,fd
    attribute,8576,0,0,1202303120,320,184549377
    subject,jhchoi,root,wheel,root,wheel,81615(/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python),100007,50331650,0.0.0.0
    return,success,0
    

TODO

  • Argtype classes
  • Filter options for monitoring

Release files for openbsm 0.0.2

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

Source distribution (sdist)

Source distribution for openbsm 0.0.2
File Size Uploaded
openbsm-0.0.2.tar.gz 22.0 kB Details

Built distribution (wheel)

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

Total release size:53.4 kB

Release files / openbsm-0.0.2.tar.gz

Download URL openbsm-0.0.2.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
04443443a1b8de8f8655e875324c82bdfbc627c5d5955fe3f96b085d6061c7d1
BLAKE2b-256 checksum
How to use checksums
ae19b58747547d212f54f6ae59d2959da30747bed4fb6fff092c0d2710cca37d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

Release files / openbsm-0.0.2-py3-none-any.whl

Download URL openbsm-0.0.2-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb868869633d89dd44cb19367e72af830f4f297c3ea89cc7eda2ed2982aae7c4
BLAKE2b-256 checksum
How to use checksums
b4efaa64fb6d9d11fd871ac440887839d5e266f408b7f4dd8689191c61b4b1e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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