├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── benchmark ├── C++ │ └── demo │ │ └── 01.cpp ├── C │ └── demo │ │ ├── 01.c │ │ └── 01.h ├── Java │ └── demo │ │ ├── 01.java │ │ └── Main.java └── Python │ └── demo │ └── 01.py ├── lib ├── .gitignore ├── build.py ├── c_demo_program.c ├── java_demo_class.java ├── test_c.py ├── test_cpp.py ├── test_java.py └── test_python.py ├── log ├── apiscan │ └── linux │ │ ├── detect_result.json │ │ └── probe_scope.json └── metascan │ ├── benchmark_C++ │ └── meta_scan_result.json │ ├── benchmark_C │ └── meta_scan_result.json │ ├── benchmark_Java │ └── meta_scan_result.json │ └── benchmark_Python │ └── meta_scan_result.json ├── requirements.txt └── src ├── model ├── __init__.py ├── llm.py └── utils.py ├── parser ├── __init__.py ├── program_parser.py └── response_parser.py ├── pipeline ├── __init__.py └── metascan.py ├── prompt └── apiscan_prompt.py ├── run.sh └── scan.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/C++/demo/01.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/benchmark/C++/demo/01.cpp -------------------------------------------------------------------------------- /benchmark/C/demo/01.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/benchmark/C/demo/01.c -------------------------------------------------------------------------------- /benchmark/C/demo/01.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/benchmark/C/demo/01.h -------------------------------------------------------------------------------- /benchmark/Java/demo/01.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/benchmark/Java/demo/01.java -------------------------------------------------------------------------------- /benchmark/Java/demo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/benchmark/Java/demo/Main.java -------------------------------------------------------------------------------- /benchmark/Python/demo/01.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/benchmark/Python/demo/01.py -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build/*.so 2 | /vendor/* 3 | -------------------------------------------------------------------------------- /lib/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/build.py -------------------------------------------------------------------------------- /lib/c_demo_program.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/c_demo_program.c -------------------------------------------------------------------------------- /lib/java_demo_class.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/java_demo_class.java -------------------------------------------------------------------------------- /lib/test_c.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/test_c.py -------------------------------------------------------------------------------- /lib/test_cpp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/test_cpp.py -------------------------------------------------------------------------------- /lib/test_java.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/test_java.py -------------------------------------------------------------------------------- /lib/test_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/lib/test_python.py -------------------------------------------------------------------------------- /log/apiscan/linux/detect_result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/log/apiscan/linux/detect_result.json -------------------------------------------------------------------------------- /log/apiscan/linux/probe_scope.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/log/apiscan/linux/probe_scope.json -------------------------------------------------------------------------------- /log/metascan/benchmark_C++/meta_scan_result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/log/metascan/benchmark_C++/meta_scan_result.json -------------------------------------------------------------------------------- /log/metascan/benchmark_C/meta_scan_result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/log/metascan/benchmark_C/meta_scan_result.json -------------------------------------------------------------------------------- /log/metascan/benchmark_Java/meta_scan_result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/log/metascan/benchmark_Java/meta_scan_result.json -------------------------------------------------------------------------------- /log/metascan/benchmark_Python/meta_scan_result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/log/metascan/benchmark_Python/meta_scan_result.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/model/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/model/llm.py -------------------------------------------------------------------------------- /src/model/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/model/utils.py -------------------------------------------------------------------------------- /src/parser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/parser/program_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/parser/program_parser.py -------------------------------------------------------------------------------- /src/parser/response_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/parser/response_parser.py -------------------------------------------------------------------------------- /src/pipeline/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pipeline/metascan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/pipeline/metascan.py -------------------------------------------------------------------------------- /src/prompt/apiscan_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/prompt/apiscan_prompt.py -------------------------------------------------------------------------------- /src/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/run.sh -------------------------------------------------------------------------------- /src/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/LLMSCAN/HEAD/src/scan.py --------------------------------------------------------------------------------