RES Workspace Manager application security rule analyzer
Description
A simple script to visualize and find bypasses in RES Workspace Manager application restrictions
Features
- Finding possible paths to reach a targeted resource such as an executable program
- Visually displaying rules as an oriented graph
Options
$ python reswmsecanalyzer.py -h
Usage: reswmsecanalyzer.py [options]
Version: 1.0
Options:
-h, --help show this help message and exit
Main parameters:
-i INPUT_FILE, --input-file=INPUT_FILE
sec_globauth.xml file containing the security rules
-t TARGET, --target=TARGET
Program or file name you want to reach, globbing
format accepted (Ex: cmd.exe, *cmd*)
Optional parameters:
-g, --graph Draw and show the graph with matplot
-o OUTPUT_GRAPH, --output-graph=OUTPUT_GRAPH
Filename to save the png graph (Ex. -o test.png)
Prerequisites
On a protected environment (physical/logical/virtualized workstation):
- The whole configuration is stored in this directory
C:\Program Files (x86)\RES Software\Workspace Manager\Data\DBCache\Objects\ - The application security rules are stored in this file
C:\Program Files (x86)\RES Software\Workspace Manager\Data\DBCache\Objects\sec_globauth.xml - Workspace access control (if implemented) is defined in the following file
C:\Program Files (x86)\RES Software\Workspace Manager\Data\DBCache\Objects\workspaces.xml
Examples
- Some example rules and their associated graphs are provided in the
reswmsecanalyzer/examplesfolder. For each example, a pretty-print version_prettyprint.xmlis also included - For the
reswmsecanalyzer/examples/multiple-rules:- The policy defined in the RES Console looks like:
- Searching a path to
cmdgives that:
$ python reswmsecanalyzer.py -i examples/multiple-rules/sec_globauth.xml -t cmd -g [+] Number of enabled rules: 4 [+] Possible path to 'cmd.exe': ['.', 'calc.exe', 'cmd.exe'] [+] Possible path to 'cmd.exe': ['.', 'notepad.exe', 'cmd.exe'] - The policy defined in the RES Console looks like:
Dependencies and installation
- The easiest way:
pip install reswmsecanalyzer - Or
pip install -r requirements.txt - Or installing manually each dependency:
- Python NetworkX:
apt-get install python-networkxorpip install networkx - Python Matplotlib:
apt-get install python-matplotliborpip install matplotlib
- Python NetworkX:
Roadmap
- Improve the possible path output description
- Add csv output
- Take into account edge constraints such as workspace access control
- Use some dynamic representation, like D3JS
Metadata
Release files for reswmsecanalyzer 1.1
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 |
|---|---|---|---|---|
| reswmsecanalyzer-1.1.tar.gz | 65.9 kB | Without provenance | Details for reswmsecanalyzer-1.1.tar.gz |
Release files / reswmsecanalyzer-1.1.tar.gz
| Download URL | reswmsecanalyzer-1.1.tar.gz |
|---|---|
| Size | 65.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
130d1d20476b2ca809a5cacd363160784e5a02210d3fc0bfbc40fbc1f57c4600
|
|
BLAKE2b-256 checksum How to use checksums |
11e86dc00724e98468c6c86ea8db13c3cdad7ccfcc50fc9c7bd09a27fce4e714
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15
|
Security for reswmsecanalyzer 1.1
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.