Install required python libs
python -m venv w_pe
source w_pe/bin/activate
pip install --upgrade pip
pip install -r requirements.txtconda config --add channels conda-forge
conda install --file requirements_conda.txt
python3 setup.py install| Extracted Feature | ShellCheck | bashlex | tree-sitter-bash | mvdan-sh | Semgrep | Joern | Regex | LinuxShell2Features |
|---|---|---|---|---|---|---|---|---|
| String and Literal Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Comment Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Token Extraction | ✅ | ✅ | ✅ | ✅ | ❌ | |||
| Variable Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ||
| Environment Variable Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Function Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ||
| Function Parameter Extraction | ❌ | |||||||
| Positional Parameter Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Command Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ||
| Built-in Command Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ||
| External Executable Call Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ||
| Command Substitution Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Pipeline Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ||
| Redirection Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Here-Document Extraction | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| File-System Operation Extraction | ✅ | ✅ | ❌ | |||||
| Network Operation Extraction | ✅ | ✅ | ❌ | |||||
| Process-Creation Extraction | ✅ | ❌ | ||||||
| Privilege-Escalation Command Extraction | ✅ | ✅ | ❌ | |||||
| Cron and Scheduled-Task Extraction | ✅ | ✅ | ❌ | |||||
| Package-Management Command Extraction | ✅ | ✅ | ❌ | |||||
| Service-Management Command Extraction | ✅ | ✅ | ❌ | |||||
| Download-and-Execute Pattern Detection | ✅ | ✅ | ❌ | |||||
Dynamic Execution and eval Detection |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | |
| Obfuscation Indicator Extraction | ✅ | ✅ | ❌ | |||||
| Base64-Encoded Content Detection | ✅ | ✅ | ❌ | |||||
| Suspicious Command Detection | ✅ | ✅ | ✅ | ❌ | ||||
| Syntax and Parse-Error Detection | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | |
| Portability-Issue Detection | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | |
| Quoting and Word-Splitting Detection | ✅ | ❌ | ❌ | ❌ | ❌ |
You can access the my awesome lists here
Contributions of any kind welcome, just follow the guidelines!
