Better Safe Than Sorry
This repository is part of the paper Better Safe Than Sorry! Automated Identification of Breaking Security-Configuration Rules accepted at the 4th ACM/IEEE International Conference on Automation of Software Test (AST).
Institutions like the Center for Internet Security publish security-configuration guides(also called benchmarks) that help us configure systems more securely. This configuration hardening can mitigate the risk of successful attacks, which may cause damage to our systems and data. A remaining problem with applying these guides are so-called "breaking rules." Applying breaking rules on a production system will break at least one functionality with the corresponding ramifications. We could safely apply the remaining rules if we identified all breaking rules and removed them from the guide.
Our new approach combines techniques from software testing, machine learning, and graph theory to automatically identify these breaking rules. This repository includes our Python scripts to
- generate the covering arrays from a given security-configuration guide
- Test the different covering arrays
- Analyze the results to find the breaking rules
One can redo all our experiments presented in the article using the code in this repository.
Setup
With PyPi
The easiest way to use the scrips in this repository is to install the package from PyPi
pip install better-safe-than-sorry
better-safe-than-sorry --version
With Poetry
One can also use poetry to install the dependencies.
cd /path/to/better-safe-than-sorry/
poetry install
poetry run better-safe-than-sorry --version
Steps
Generate Profiles based on Covering Arrays
See here.
Test Execution
Simulation
See here.
Test Execution with Vagrant
See here
Test Result Analysis
See here.
Resources
Sfera Automation files
The folder rsc/sfera_automation_jsons contains variants of sfera_automation.json files based on the Windows 10 version 1909 guide by the Center for Internet Security.
sfera_automation.json is a JSON-based file format used at Siemens to automatically implement Windows-based security-configuration guides.
We generated the variants were generated using the IPOG and IPOG-D algorithms and include custom profiles for combinatorial testing of strength 2 to 5.
Contact
If you have any questions, please create an issue or contact Patrick Stöckle.
Metadata
Release files for better-safe-than-sorry 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| better-safe-than-sorry-0.1.2.tar.gz | 24.4 kB | Without provenance | Details for better-safe-than-sorry-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| better_safe_than_sorry-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for better_safe_than_sorry-0.1.2-py3-none-any.whl |
Total release size: 58.0 kB
Release files / better-safe-than-sorry-0.1.2.tar.gz
| Download URL | better-safe-than-sorry-0.1.2.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f88c3fb82df6a04c4f21ef153d7e2257044163ce50876c6edc9a4c716ed8c34
|
|
BLAKE2b-256 checksum How to use checksums |
531513dd65f9277440e1734baf148003fad525e63da74f4074dec71e00dddb18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / better_safe_than_sorry-0.1.2-py3-none-any.whl
| Download URL | better_safe_than_sorry-0.1.2-py3-none-any.whl |
|---|---|
| Size | 33.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5da54118454b27e7763d52009be56b4651cef033fd81bb0de38d81f32d790293
|
|
BLAKE2b-256 checksum How to use checksums |
349a9b58c1e0a7283284094f3fa688a1343ff272cad51727afce1ca6758fa4ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for better-safe-than-sorry 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.