Static analysis of Python web applications based on theoretical foundations (Control flow graphs, fixed point, dataflow analysis)
- Detect Command injection
- Detect SQL injection
- Detect XSS
- Detect directory traversal
- Get a control flow graph
- Get a def-use and/or a use-def chain
- Search GitHub and analyse hits with PyT
- Scan intraprocedural or interprocedural
- A lot of customisation possible
Example usage and output:
- git clone https://github.com/python-security/pyt.git
- cd pyt/
- python setup.py install
- pyt -h
Using it like a user python -m pyt -f example/vulnerable_code/XSS_call.py save -du
Running the tests python -m tests
Running an individual test file python -m unittest tests.import_test
Running an individual test python -m unittest tests.import_test.ImportTest.test_import
Join our slack group: https://pyt-dev.slack.com/ - ask for invite: [email protected]