Skip to content

Commit d7c3cbf

Browse files
Fixed README issues.
1 parent 948e438 commit d7c3cbf

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
An open-source Python library for code encryption, decryption, and safe evaluation using Python's built-in AST module, complete with allowed functions, variables, built-in imports, timeouts, and blocked access to attributes.
99

10-
*CodeSafe is an experimental library, and we're still running some tests on it. If you encounter any issues, or have an edge use case, please let us know.*
10+
*CodeSafe is an experimental library, and we're still running some tests on it. If you encounter any issues or have an edge use case, please let us know.*
1111

1212
> [!NOTE]
1313
> **CodeSafe** is intended to quickly encrypt/decrypt code files, and run them (only for Python script files) while in their encrypted form, but not as a means for powerful encryption, just code obfuscation. We have also included a `safe_eval` function, that can safely evaluate expressions within a safe environment.
@@ -32,11 +32,12 @@ The fix includes:
3232

3333
A huge thanks to [@hkmj19](https://github.com/hkmj19)/[Linkedin](https://www.linkedin.com/in/hemanth-kumar-mj-24b50a256/) for finding and reporting this vulnerability.
3434

35-
---
35+
## Vulnerability & Security Testing ([`test_poc_vulnerability.py`](https://github.com/Infinitode/CodeSafe/blob/main/test_poc_vulnerability.py))
3636

37-
## Vulnerability & Security Testing (`test_poc.py`)
37+
> [!NOTE]
38+
> These tests are only available on GitHub, and not on PyPI. They are external tests that aren't built along with `CodeSafe` versions.
3839
39-
CodeSafe v0.0.5+ includes a rigorous test suite (`TestVulnerabilityFixes` and `TestEdgeCases` in `test_poc.py`) to systematically verify that `safe_eval` blocks sandbox escapes while preserving standard evaluation features.
40+
CodeSafe v0.0.5+ includes a rigorous test suite (`TestVulnerabilityFixes` and `TestEdgeCases` in `test_poc_vulnerability.py`) to systematically verify that `safe_eval` blocks sandbox escapes while preserving standard evaluation features.
4041

4142
### Test Results Summary
4243

@@ -57,12 +58,10 @@ CodeSafe v0.0.5+ includes a rigorous test suite (`TestVulnerabilityFixes` and `T
5758
To run the security PoC suite locally:
5859

5960
```bash
60-
python -m unittest test_poc.py -v
61+
python -m unittest test_poc_vulnerability.py -v
6162

6263
```
6364

64-
---
65-
6665
### Changelog v0.0.5:
6766

6867
* **Security Fix**: Patched critical sandbox escape vulnerability in `safe_eval()` (CVE pending), thanks to [@hkmj19](https://github.com/hkmj19)/[Linkedin](https://www.linkedin.com/in/hemanth-kumar-mj-24b50a256/) for reporting.

0 commit comments

Comments
 (0)