https://github.com/RamadhanAmizudin/python-icap-yara
An ICAP Server with yara scanner for URL and content.
https://github.com/RamadhanAmizudin/python-icap-yara
icap icap-server malware-analysis python squid-proxy yara
Last synced: 6 months ago
JSON representation
An ICAP Server with yara scanner for URL and content.
- Host: GitHub
- URL: https://github.com/RamadhanAmizudin/python-icap-yara
- Owner: RamadhanAmizudin
- License: mit
- Created: 2017-02-06T16:17:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T09:50:37.000Z (10 months ago)
- Last Synced: 2025-04-26T03:29:41.934Z (6 months ago)
- Topics: icap, icap-server, malware-analysis, python, squid-proxy, yara
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 59
- Watchers: 5
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yara Python ICAP Server
=====================
An ICAP Server with yara scanner for URL and content.## Requirement
* Squid Proxy 3.5
* Python 3## Squid Configuration
```
icap_enable on
icap_preview_enable off
icap_send_client_ip on
icap_send_client_username on
icap_service service_resp respmod_precache bypass=1 icap://127.0.0.1:1344/yara
adaptation_access service_resp allow all
```## Running
```
$ git clone https://github.com/RamadhanAmizudin/python-icap-yara
$ pip install -r requirements.txt
$ python server.py
```## Config File
```
[config]
content_rules =
url_rules =
content_dir =
```## Log Content
```
{
"content": "",
"request_header": {
"accept": [
"*/*"
],
"host": [
"blog.honeynet.org.my"
],
"user-agent": [
"curl/7.47.0"
]
},
"response_header": {
"content-type": [
"text/html; charset=UTF-8"
],
"date": [
"Mon, 06 Feb 2017 15:55:31 GMT"
],
"link": [
"; rel=\"https://api.w.org/\"",
"; rel=shortlink"
],
"server": [
"Apache/2.2.22 (Ubuntu)"
],
"vary": [
"Accept-Encoding"
]
},
"rules": [
"list of rules triggered"
]
}
```Questions & Comments
=====================
If you encounter a bug, please feel free to post it on GitHub. For questions or comments.