antguard 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
antguard-0.1.0/LICENSE ADDED
@@ -0,0 +1,189 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work.
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including
48
+ the original version of the Work and any modifications or additions
49
+ to that Work or Derivative Works thereof, that is intentionally
50
+ submitted to the Licensor for inclusion in the Work by the copyright owner
51
+ or by an individual or Legal Entity authorized to submit on behalf of
52
+ the copyright owner. For the purposes of this definition, "submitted"
53
+ means any form of electronic, verbal, or written communication sent
54
+ to the Licensor or its representatives, including but not limited to
55
+ communication on electronic mailing lists, source code control systems,
56
+ and issue tracking systems that are managed by, or on behalf of, the
57
+ Licensor for the purpose of discussing and improving the Work, but
58
+ excluding communication that is conspicuously marked or otherwise
59
+ designated in writing by the copyright owner as "Not a Contribution."
60
+
61
+ "Contributor" shall mean Licensor and any individual or Legal Entity
62
+ on behalf of whom a Contribution has been received by the Licensor and
63
+ subsequently incorporated within the Work.
64
+
65
+ 2. Grant of Copyright License. Subject to the terms and conditions of
66
+ this License, each Contributor hereby grants to You a perpetual,
67
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
68
+ copyright license to reproduce, prepare Derivative Works of,
69
+ publicly display, publicly perform, sublicense, and distribute the
70
+ Work and such Derivative Works in Source or Object form.
71
+
72
+ 3. Grant of Patent License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ (except as stated in this section) patent license to make, have made,
76
+ use, offer to sell, sell, import, and otherwise transfer the Work,
77
+ where such license applies only to those patent claims licensable
78
+ by such Contributor that are necessarily infringed by their
79
+ Contribution(s) alone or by combination of their Contribution(s)
80
+ with the Work to which such Contribution(s) was submitted. If You
81
+ institute patent litigation against any entity (including a
82
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
83
+ or a Contribution incorporated within the Work constitutes direct
84
+ or contributory patent infringement, then any patent licenses
85
+ granted to You under this License for that Work shall terminate
86
+ as of the date such litigation is filed.
87
+
88
+ 4. Redistribution. You may reproduce and distribute copies of the
89
+ Work or Derivative Works thereof in any medium, with or without
90
+ modifications, and in Source or Object form, provided that You
91
+ meet the following conditions:
92
+
93
+ (a) You must give any other recipients of the Work or
94
+ Derivative Works a copy of this License; and
95
+
96
+ (b) You must cause any modified files to carry prominent notices
97
+ stating that You changed the files; and
98
+
99
+ (c) You must retain, in the Source form of any Derivative Works
100
+ that You distribute, all copyright, patent, trademark, and
101
+ attribution notices from the Source form of the Work,
102
+ excluding those notices that do not pertain to any part of
103
+ the Derivative Works; and
104
+
105
+ (d) If the Work includes a "NOTICE" text file as part of its
106
+ distribution, then any Derivative Works that You distribute must
107
+ include a readable copy of the attribution notices contained
108
+ within such NOTICE file, excluding any notices that do not
109
+ pertain to any part of the Derivative Works, in at least one
110
+ of the following places: within a NOTICE text file distributed
111
+ as part of the Derivative Works; within the Source form or
112
+ documentation, if provided along with the Derivative Works; or,
113
+ within a display generated by the Derivative Works, if and
114
+ wherever such third-party notices normally appear. The contents
115
+ of the NOTICE file are for informational purposes only and
116
+ do not modify the License. You may add Your own attribution
117
+ notices within Derivative Works that You distribute, alongside
118
+ or as an addendum to the NOTICE text from the Work, provided
119
+ that such additional attribution notices cannot be construed
120
+ as modifying the License.
121
+
122
+ You may add Your own copyright statement to Your modifications and
123
+ may provide additional or different license terms and conditions
124
+ for use, reproduction, or distribution of Your modifications, or
125
+ for any such Derivative Works as a whole, provided Your use,
126
+ reproduction, and distribution of the Work otherwise complies with
127
+ the conditions stated in this License.
128
+
129
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
130
+ any Contribution intentionally submitted for inclusion in the Work
131
+ by You to the Licensor shall be under the terms and conditions of
132
+ this License, without any additional terms or conditions.
133
+ Notwithstanding the above, nothing herein shall supersede or modify
134
+ the terms of any separate license agreement you may have executed
135
+ with Licensor regarding such Contributions.
136
+
137
+ 6. Trademarks. This License does not grant permission to use the trade
138
+ names, trademarks, service marks, or product names of the Licensor,
139
+ except as required for reasonable and customary use in describing the
140
+ origin of the Work and reproducing the content of the NOTICE file.
141
+
142
+ 7. Disclaimer of Warranty. Unless required by applicable law or
143
+ agreed to in writing, Licensor provides the Work (and each
144
+ Contributor provides its Contributions) on an "AS IS" BASIS,
145
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
146
+ implied, including, without limitation, any warranties or conditions
147
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
148
+ PARTICULAR PURPOSE. You are solely responsible for determining the
149
+ appropriateness of using or redistributing the Work and assume any
150
+ risks associated with Your exercise of permissions under this License.
151
+
152
+ 8. Limitation of Liability. In no event and under no legal theory,
153
+ whether in tort (including negligence), contract, or otherwise,
154
+ unless required by applicable law (such as deliberate and grossly
155
+ negligent acts) or agreed to in writing, shall any Contributor be
156
+ liable to You for damages, including any direct, indirect, special,
157
+ incidental, or consequential damages of any character arising as a
158
+ result of this License or out of the use or inability to use the
159
+ Work (including but not limited to damages for loss of goodwill,
160
+ work stoppage, computer failure or malfunction, or any and all
161
+ other commercial damages or losses), even if such Contributor
162
+ has been advised of the possibility of such damages.
163
+
164
+ 9. Accepting Warranty or Additional Liability. While redistributing
165
+ the Work or Derivative Works thereof, You may choose to offer,
166
+ and charge a fee for, acceptance of support, warranty, indemnity,
167
+ or other liability obligations and/or rights consistent with this
168
+ License. However, in accepting such obligations, You may act only
169
+ on Your own behalf and on Your sole responsibility, not on behalf
170
+ of any other Contributor, and only if You agree to indemnify,
171
+ defend, and hold each Contributor harmless for any liability
172
+ incurred by, or claims asserted against, such Contributor by reason
173
+ of your accepting any such warranty or additional liability.
174
+
175
+ END OF TERMS AND CONDITIONS
176
+
177
+ Copyright 2026 VK-Ant (Venkatkumar Rajan)
178
+
179
+ Licensed under the Apache License, Version 2.0 (the "License");
180
+ you may not use this file except in compliance with the License.
181
+ You may obtain a copy of the License at
182
+
183
+ http://www.apache.org/licenses/LICENSE-2.0
184
+
185
+ Unless required by applicable law or agreed to in writing, software
186
+ distributed under the License is distributed on an "AS IS" BASIS,
187
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
188
+ See the License for the specific language governing permissions and
189
+ limitations under the License.
@@ -0,0 +1,217 @@
1
+ Metadata-Version: 2.4
2
+ Name: antguard
3
+ Version: 0.1.0
4
+ Summary: Guard. Detect. Protect. Pure system-level profiler for AI data privacy.
5
+ Author: VK-Ant (Venkatkumar Rajan)
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/VK-Ant/antguard
8
+ Project-URL: Repository, https://github.com/VK-Ant/antguard
9
+ Project-URL: Issues, https://github.com/VK-Ant/antguard/issues
10
+ Keywords: ai-security,data-privacy,runtime-monitoring,profiler,audit,exfiltration-detection,file-monitoring,network-monitoring
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Security
23
+ Classifier: Topic :: System :: Monitoring
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Requires-Python: >=3.8
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: watchdog>=3.0
29
+ Requires-Dist: psutil>=5.9
30
+ Provides-Extra: gpu
31
+ Requires-Dist: pynvml>=11.0; extra == "gpu"
32
+ Provides-Extra: all
33
+ Requires-Dist: pynvml>=11.0; extra == "all"
34
+ Dynamic: license-file
35
+
36
+ <p align="center">
37
+ <img src="https://raw.githubusercontent.com/VK-Ant/antguard/main/assets/antguard.png" alt="antguard" width="800"/>
38
+ </p>
39
+
40
+ <p align="center">
41
+ <strong>Guard, Detect, Protect.</strong><br>
42
+ Pure system-level profiler for AI data privacy. Like <code>cProfile</code>, but for data movement.
43
+ </p>
44
+
45
+ <p align="center">
46
+
47
+ <a href="https://pypi.org/project/antguard/"><img src="https://img.shields.io/badge/PyPI-v0.3.1-green" alt="PyPI"></a>
48
+
49
+ <a href="https://github.com/VK-Ant/antguard/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
50
+ <a href="https://colab.research.google.com/github/VK-Ant/antguard/blob/main/demo/antguard_quickstart.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a>
51
+ </p>
52
+
53
+ No AI, No API, No cloud, No regex, Works offline, Works air-gapped.
54
+
55
+ ## Install
56
+
57
+ ```bash
58
+ pip install antguard
59
+ ```
60
+
61
+ For NVIDIA GPU monitoring:
62
+ ```bash
63
+ pip install antguard[gpu]
64
+ ```
65
+
66
+ ## Quick Start
67
+
68
+ ```python
69
+ from antguard import Guard
70
+
71
+ # Context manager (recommended)
72
+ with Guard(watch=["./data/"]) as g:
73
+ # your code runs here - completely unchanged
74
+ agent.run("process confidential.pdf")
75
+
76
+ # The one answer that matters
77
+ print(g.did_data_leave()) # True or False
78
+
79
+ # Save reports
80
+ g.save("./logs/") # creates .log + .txt + .json
81
+ ```
82
+
83
+ ## What It Monitors
84
+
85
+ | Layer | What | How |
86
+ |-------|------|-----|
87
+ | **File** | Every read, write, copy, move, delete | watchdog + SHA256 fingerprinting |
88
+ | **Network** | Every outbound connection, bytes sent | psutil network polling |
89
+ | **Process** | Process creation, shell commands, suspicious binaries | psutil process tree |
90
+ | **Correlation** | Match file bytes to outbound network data | Chunk hash + size + temporal |
91
+ | **Runtime** | CPU, GPU, memory, disk I/O | psutil + pynvml (optional) |
92
+
93
+ ## How It Works
94
+
95
+ <p align="center">
96
+ <img src="https://raw.githubusercontent.com/VK-Ant/antguard/main/assets/arch.png" alt="arc" width="100%">
97
+ </p>
98
+
99
+ antguard wraps your code from the outside. It never reads file contents.
100
+ It tracks data flow by fingerprinting files and correlating byte movement.
101
+
102
+ ## API
103
+
104
+ ```python
105
+ from antguard import Guard
106
+
107
+ guard = Guard(
108
+ watch=["./data/"], # directories to monitor
109
+ detect_outbound=True, # network monitoring
110
+ track_processes=True, # process tree monitoring
111
+ correlate=True, # byte-flow correlation
112
+ runtime=True, # CPU/GPU/memory metrics
113
+ gpu=True, # GPU monitoring
114
+ log_path="./logs/", # log output directory
115
+ )
116
+
117
+ guard.start()
118
+ # ... your code ...
119
+ guard.stop()
120
+
121
+ # Query results
122
+ guard.did_data_leave() # bool
123
+ guard.file_events() # list of file events
124
+ guard.net_events() # list of network events
125
+ guard.proc_events() # list of process events
126
+ guard.correlations() # file-to-network matches
127
+ guard.matched_files() # files found in outbound data
128
+ guard.runtime_metrics() # CPU, GPU, memory summary
129
+ guard.risk_level() # LOW / MEDIUM / HIGH / CRITICAL
130
+ guard.anomalies() # runtime anomalies
131
+ guard.data_flow_map() # full byte flow visualization
132
+ guard.save("./logs/") # write reports
133
+ guard.summary() # one-line summary
134
+ ```
135
+
136
+ ## Report Output
137
+
138
+ **Text report** (`antguard_report_*.txt`):
139
+ ```
140
+ antguard Profiler Report
141
+ ==================================================
142
+ Session : a1b2c3d4
143
+ Platform : Linux (6.5.0)
144
+ Duration : 12.3 seconds
145
+
146
+ DATA LEFT SYSTEM: NO
147
+
148
+ -- FILE EVENTS (2) --
149
+ [MODIFY ] ./data/salary.pdf 240.0 KB python(pid 4521) LOW
150
+ [CREATE ] ./output/summary.txt 1.0 KB python(pid 4521) LOW
151
+
152
+ -- NETWORK EVENTS (0) --
153
+ None
154
+
155
+ -- PROCESS EVENTS (3 total, 0 suspicious) --
156
+ All processes normal
157
+
158
+ -- BYTE-FLOW CORRELATIONS (0) --
159
+ No file-to-network correlations detected
160
+
161
+ -- RUNTIME METRICS (12 samples) --
162
+ CPU avg/peak : 35.2% / 72.1%
163
+ Memory avg/peak : 8.2 GB / 8.5 GB
164
+ Process RSS : 156.0 MB avg, 189.0 MB peak
165
+ GPU : not detected
166
+
167
+ ==================================================
168
+ OVERALL RISK: LOW
169
+ ==================================================
170
+ ```
171
+
172
+ ## Cross-Platform
173
+
174
+ | Component | Windows | Linux | macOS |
175
+ |-----------|---------|-------|-------|
176
+ | File monitoring | ReadDirectoryChangesW | inotify | FSEvents |
177
+ | Network monitoring | WMI | /proc/net | lsof |
178
+ | Process monitoring | Windows API | /proc | sysctl |
179
+ | GPU (NVIDIA) | pynvml | pynvml | N/A |
180
+ | CPU/Memory | psutil | psutil | psutil |
181
+
182
+ ## Demos
183
+
184
+ | Demo | What it shows |
185
+ |------|--------------|
186
+ | [Full Audit](demo/demo_05_full_audit.py) | All features combined — the showcase demo |
187
+ | [Exfiltration Detection](demo/demo_02_exfiltration_detection.py) | Catches data sent to external server |
188
+ | [File Monitoring](demo/demo_01_file_monitoring.py) | File tracking + SHA256 fingerprinting |
189
+ | [Suspicious Process](demo/demo_03_suspicious_process.py) | Shell and subprocess detection |
190
+ | [Runtime Metrics](demo/demo_04_runtime_metrics.py) | CPU, GPU, memory profiling |
191
+ | [Wrap Any Library](demo/demo_06_wrap_any_library.py) | Zero code changes — cProfile pattern |
192
+
193
+ **Google Colab:** [Open quickstart notebook](https://colab.research.google.com/github/VK-Ant/antguard/blob/main/demo/antguard_quickstart.ipynb)
194
+
195
+ ## Dependencies
196
+
197
+ Core: `watchdog` + `psutil` (that's it)
198
+
199
+ Optional: `pynvml` (NVIDIA GPU metrics)
200
+
201
+ ## Memory Footprint
202
+
203
+ < 25 MB RAM regardless of session length. Events stream to disk.
204
+
205
+ ## Part of the Ant Intelligence Ecosystem
206
+
207
+ - **antguard** - Guard. Detect. Protect. (system profiler)
208
+ - **llmevalkit** - Evaluate. Score. Improve. (AI evaluation)
209
+ - Together: full AI system audit
210
+
211
+ ## License
212
+
213
+ Apache 2.0
214
+
215
+ ## Author
216
+
217
+ **Venkatkumar Rajan**
@@ -0,0 +1,182 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/VK-Ant/antguard/main/assets/antguard.png" alt="antguard" width="800"/>
3
+ </p>
4
+
5
+ <p align="center">
6
+ <strong>Guard, Detect, Protect.</strong><br>
7
+ Pure system-level profiler for AI data privacy. Like <code>cProfile</code>, but for data movement.
8
+ </p>
9
+
10
+ <p align="center">
11
+
12
+ <a href="https://pypi.org/project/antguard/"><img src="https://img.shields.io/badge/PyPI-v0.3.1-green" alt="PyPI"></a>
13
+
14
+ <a href="https://github.com/VK-Ant/antguard/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
15
+ <a href="https://colab.research.google.com/github/VK-Ant/antguard/blob/main/demo/antguard_quickstart.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a>
16
+ </p>
17
+
18
+ No AI, No API, No cloud, No regex, Works offline, Works air-gapped.
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ pip install antguard
24
+ ```
25
+
26
+ For NVIDIA GPU monitoring:
27
+ ```bash
28
+ pip install antguard[gpu]
29
+ ```
30
+
31
+ ## Quick Start
32
+
33
+ ```python
34
+ from antguard import Guard
35
+
36
+ # Context manager (recommended)
37
+ with Guard(watch=["./data/"]) as g:
38
+ # your code runs here - completely unchanged
39
+ agent.run("process confidential.pdf")
40
+
41
+ # The one answer that matters
42
+ print(g.did_data_leave()) # True or False
43
+
44
+ # Save reports
45
+ g.save("./logs/") # creates .log + .txt + .json
46
+ ```
47
+
48
+ ## What It Monitors
49
+
50
+ | Layer | What | How |
51
+ |-------|------|-----|
52
+ | **File** | Every read, write, copy, move, delete | watchdog + SHA256 fingerprinting |
53
+ | **Network** | Every outbound connection, bytes sent | psutil network polling |
54
+ | **Process** | Process creation, shell commands, suspicious binaries | psutil process tree |
55
+ | **Correlation** | Match file bytes to outbound network data | Chunk hash + size + temporal |
56
+ | **Runtime** | CPU, GPU, memory, disk I/O | psutil + pynvml (optional) |
57
+
58
+ ## How It Works
59
+
60
+ <p align="center">
61
+ <img src="https://raw.githubusercontent.com/VK-Ant/antguard/main/assets/arch.png" alt="arc" width="100%">
62
+ </p>
63
+
64
+ antguard wraps your code from the outside. It never reads file contents.
65
+ It tracks data flow by fingerprinting files and correlating byte movement.
66
+
67
+ ## API
68
+
69
+ ```python
70
+ from antguard import Guard
71
+
72
+ guard = Guard(
73
+ watch=["./data/"], # directories to monitor
74
+ detect_outbound=True, # network monitoring
75
+ track_processes=True, # process tree monitoring
76
+ correlate=True, # byte-flow correlation
77
+ runtime=True, # CPU/GPU/memory metrics
78
+ gpu=True, # GPU monitoring
79
+ log_path="./logs/", # log output directory
80
+ )
81
+
82
+ guard.start()
83
+ # ... your code ...
84
+ guard.stop()
85
+
86
+ # Query results
87
+ guard.did_data_leave() # bool
88
+ guard.file_events() # list of file events
89
+ guard.net_events() # list of network events
90
+ guard.proc_events() # list of process events
91
+ guard.correlations() # file-to-network matches
92
+ guard.matched_files() # files found in outbound data
93
+ guard.runtime_metrics() # CPU, GPU, memory summary
94
+ guard.risk_level() # LOW / MEDIUM / HIGH / CRITICAL
95
+ guard.anomalies() # runtime anomalies
96
+ guard.data_flow_map() # full byte flow visualization
97
+ guard.save("./logs/") # write reports
98
+ guard.summary() # one-line summary
99
+ ```
100
+
101
+ ## Report Output
102
+
103
+ **Text report** (`antguard_report_*.txt`):
104
+ ```
105
+ antguard Profiler Report
106
+ ==================================================
107
+ Session : a1b2c3d4
108
+ Platform : Linux (6.5.0)
109
+ Duration : 12.3 seconds
110
+
111
+ DATA LEFT SYSTEM: NO
112
+
113
+ -- FILE EVENTS (2) --
114
+ [MODIFY ] ./data/salary.pdf 240.0 KB python(pid 4521) LOW
115
+ [CREATE ] ./output/summary.txt 1.0 KB python(pid 4521) LOW
116
+
117
+ -- NETWORK EVENTS (0) --
118
+ None
119
+
120
+ -- PROCESS EVENTS (3 total, 0 suspicious) --
121
+ All processes normal
122
+
123
+ -- BYTE-FLOW CORRELATIONS (0) --
124
+ No file-to-network correlations detected
125
+
126
+ -- RUNTIME METRICS (12 samples) --
127
+ CPU avg/peak : 35.2% / 72.1%
128
+ Memory avg/peak : 8.2 GB / 8.5 GB
129
+ Process RSS : 156.0 MB avg, 189.0 MB peak
130
+ GPU : not detected
131
+
132
+ ==================================================
133
+ OVERALL RISK: LOW
134
+ ==================================================
135
+ ```
136
+
137
+ ## Cross-Platform
138
+
139
+ | Component | Windows | Linux | macOS |
140
+ |-----------|---------|-------|-------|
141
+ | File monitoring | ReadDirectoryChangesW | inotify | FSEvents |
142
+ | Network monitoring | WMI | /proc/net | lsof |
143
+ | Process monitoring | Windows API | /proc | sysctl |
144
+ | GPU (NVIDIA) | pynvml | pynvml | N/A |
145
+ | CPU/Memory | psutil | psutil | psutil |
146
+
147
+ ## Demos
148
+
149
+ | Demo | What it shows |
150
+ |------|--------------|
151
+ | [Full Audit](demo/demo_05_full_audit.py) | All features combined — the showcase demo |
152
+ | [Exfiltration Detection](demo/demo_02_exfiltration_detection.py) | Catches data sent to external server |
153
+ | [File Monitoring](demo/demo_01_file_monitoring.py) | File tracking + SHA256 fingerprinting |
154
+ | [Suspicious Process](demo/demo_03_suspicious_process.py) | Shell and subprocess detection |
155
+ | [Runtime Metrics](demo/demo_04_runtime_metrics.py) | CPU, GPU, memory profiling |
156
+ | [Wrap Any Library](demo/demo_06_wrap_any_library.py) | Zero code changes — cProfile pattern |
157
+
158
+ **Google Colab:** [Open quickstart notebook](https://colab.research.google.com/github/VK-Ant/antguard/blob/main/demo/antguard_quickstart.ipynb)
159
+
160
+ ## Dependencies
161
+
162
+ Core: `watchdog` + `psutil` (that's it)
163
+
164
+ Optional: `pynvml` (NVIDIA GPU metrics)
165
+
166
+ ## Memory Footprint
167
+
168
+ < 25 MB RAM regardless of session length. Events stream to disk.
169
+
170
+ ## Part of the Ant Intelligence Ecosystem
171
+
172
+ - **antguard** - Guard. Detect. Protect. (system profiler)
173
+ - **llmevalkit** - Evaluate. Score. Improve. (AI evaluation)
174
+ - Together: full AI system audit
175
+
176
+ ## License
177
+
178
+ Apache 2.0
179
+
180
+ ## Author
181
+
182
+ **Venkatkumar Rajan**