Python utilities to parse technical information for security audits
Project description
analysis-toolkit
The analysis toolkit is a collection of scripts designed to assist auditors analyze the results of the KP system auditing scripts maintained at:
Critical dependencies
- Shell: a recent version of
bash - Python: A recent release of version 3. Both 3.8 (Ubuntu 20.04) and 3.10 (Ubuntu 22.04) should be fine
- Misc. commands:
grepechoawksort
The scripts have been tested and are usually used on Ubuntu distributions. They were developed on WSL instances of Ubuntu 20.04 and 22.04. YMMV on other distributions or versions, but I don't foresee any problems, say, on a MacOS Terminal prompt.
For KP auditors, I strongly recommend following the Getting started with WSL and Bashing Our Way to Efficient Audits pages on Confluence.
I also recommend that you use the Windows Terminal app available from the Microsoft Store. Among other numerous benefits, this will allow to click on hyperlinks created by some of the tools.
Installation
Installation is as simple as cloning this repo to your system.
Change to your favorite location where you'd like to install them. A sub-directory will be created called analysis-toolkit. If you're not sure where to put them, create a tools directory under home directory (the examples below assume this is your path).
mkdir ~/tools # If the tools directory doesn't already exist...
cd ~/tools
git clone https://github.com/kirkpatrickprice/analysis-toolkit
Edit your user's .bashrc file
nano ~/.bashrc
And add the analysis-toolkit directory to your path by appending the following to the end of the file
export PATH="${HOME}/tools:${HOME}/tools/analysis-toolkit:${PATH}"
With the analysis-toolkit in your path, you will be able to use these commands anywhere in your Bash shell prompt.
Now, you'll need to install the Python dependencies. If you'll be using your Python install for more than just the analysis toolkit, you might want to create a venv to run it in. Check out https://python.land/virtual-environments/virtualenv if you need a tutorial. Then...
cd ~/tools/analysis-tookit
python3 -m pip install --upgrade pip # Upgrade PIP if it's not already up to date
python3 -m pip install -r requirements.txt # Install the packages listed in the file
Updating the toolkit
Change to the analysis-toolkit directory
cd ~/tools/analysis-toolkit
And issue the following git commands. Any changes you might have made in this directory will be overwritten.
git fetch
git reset --hard HEAD
git merge
If you get any errors from Python about missing packages, re-run the PIP-related commands from the Installation section above to make sure you have all the dependencies installed.
Using the toolkit scripts
Each toolkit script includes a "help" function to explain the options.
<script> -h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kp_analysis_toolkit-1.0.0.tar.gz.
File metadata
- Download URL: kp_analysis_toolkit-1.0.0.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fcfe6cc46622a1930032134fcfee7d67fa2bca5182a52f237426d6478f12275
|
|
| MD5 |
9117dba4113f1c250c60b81b30983760
|
|
| BLAKE2b-256 |
bdba6881a506f4bc6dd1405ac7e51d2bd03432f9f84c24e2506dd799569aa6bc
|
File details
Details for the file kp_analysis_toolkit-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kp_analysis_toolkit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
640b0d293f555fe200e631b3c4f5da6551ff0687c4368a39d5a152779f250a07
|
|
| MD5 |
40c2c2e6b6fab6b1fc329065be6f3a71
|
|
| BLAKE2b-256 |
0e957e5456dcb0a1f15a86272a5beda1a786d4e0f7b9e57dc60fd743c25f841d
|