strix-agent 0.4.0__py3-none-any.whl
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.
- strix/__init__.py +0 -0
- strix/agents/StrixAgent/__init__.py +4 -0
- strix/agents/StrixAgent/strix_agent.py +89 -0
- strix/agents/StrixAgent/system_prompt.jinja +404 -0
- strix/agents/__init__.py +10 -0
- strix/agents/base_agent.py +518 -0
- strix/agents/state.py +163 -0
- strix/interface/__init__.py +4 -0
- strix/interface/assets/tui_styles.tcss +694 -0
- strix/interface/cli.py +230 -0
- strix/interface/main.py +500 -0
- strix/interface/tool_components/__init__.py +39 -0
- strix/interface/tool_components/agents_graph_renderer.py +123 -0
- strix/interface/tool_components/base_renderer.py +62 -0
- strix/interface/tool_components/browser_renderer.py +120 -0
- strix/interface/tool_components/file_edit_renderer.py +99 -0
- strix/interface/tool_components/finish_renderer.py +31 -0
- strix/interface/tool_components/notes_renderer.py +108 -0
- strix/interface/tool_components/proxy_renderer.py +255 -0
- strix/interface/tool_components/python_renderer.py +34 -0
- strix/interface/tool_components/registry.py +72 -0
- strix/interface/tool_components/reporting_renderer.py +53 -0
- strix/interface/tool_components/scan_info_renderer.py +64 -0
- strix/interface/tool_components/terminal_renderer.py +131 -0
- strix/interface/tool_components/thinking_renderer.py +29 -0
- strix/interface/tool_components/user_message_renderer.py +43 -0
- strix/interface/tool_components/web_search_renderer.py +28 -0
- strix/interface/tui.py +1274 -0
- strix/interface/utils.py +559 -0
- strix/llm/__init__.py +15 -0
- strix/llm/config.py +20 -0
- strix/llm/llm.py +465 -0
- strix/llm/memory_compressor.py +212 -0
- strix/llm/request_queue.py +87 -0
- strix/llm/utils.py +87 -0
- strix/prompts/README.md +64 -0
- strix/prompts/__init__.py +109 -0
- strix/prompts/cloud/.gitkeep +0 -0
- strix/prompts/coordination/root_agent.jinja +41 -0
- strix/prompts/custom/.gitkeep +0 -0
- strix/prompts/frameworks/fastapi.jinja +142 -0
- strix/prompts/frameworks/nextjs.jinja +126 -0
- strix/prompts/protocols/graphql.jinja +215 -0
- strix/prompts/reconnaissance/.gitkeep +0 -0
- strix/prompts/technologies/firebase_firestore.jinja +177 -0
- strix/prompts/technologies/supabase.jinja +189 -0
- strix/prompts/vulnerabilities/authentication_jwt.jinja +147 -0
- strix/prompts/vulnerabilities/broken_function_level_authorization.jinja +146 -0
- strix/prompts/vulnerabilities/business_logic.jinja +171 -0
- strix/prompts/vulnerabilities/csrf.jinja +174 -0
- strix/prompts/vulnerabilities/idor.jinja +195 -0
- strix/prompts/vulnerabilities/information_disclosure.jinja +222 -0
- strix/prompts/vulnerabilities/insecure_file_uploads.jinja +188 -0
- strix/prompts/vulnerabilities/mass_assignment.jinja +141 -0
- strix/prompts/vulnerabilities/open_redirect.jinja +177 -0
- strix/prompts/vulnerabilities/path_traversal_lfi_rfi.jinja +142 -0
- strix/prompts/vulnerabilities/race_conditions.jinja +164 -0
- strix/prompts/vulnerabilities/rce.jinja +154 -0
- strix/prompts/vulnerabilities/sql_injection.jinja +151 -0
- strix/prompts/vulnerabilities/ssrf.jinja +135 -0
- strix/prompts/vulnerabilities/subdomain_takeover.jinja +155 -0
- strix/prompts/vulnerabilities/xss.jinja +169 -0
- strix/prompts/vulnerabilities/xxe.jinja +184 -0
- strix/runtime/__init__.py +19 -0
- strix/runtime/docker_runtime.py +399 -0
- strix/runtime/runtime.py +29 -0
- strix/runtime/tool_server.py +205 -0
- strix/telemetry/__init__.py +4 -0
- strix/telemetry/tracer.py +337 -0
- strix/tools/__init__.py +64 -0
- strix/tools/agents_graph/__init__.py +16 -0
- strix/tools/agents_graph/agents_graph_actions.py +621 -0
- strix/tools/agents_graph/agents_graph_actions_schema.xml +226 -0
- strix/tools/argument_parser.py +121 -0
- strix/tools/browser/__init__.py +4 -0
- strix/tools/browser/browser_actions.py +236 -0
- strix/tools/browser/browser_actions_schema.xml +183 -0
- strix/tools/browser/browser_instance.py +533 -0
- strix/tools/browser/tab_manager.py +342 -0
- strix/tools/executor.py +305 -0
- strix/tools/file_edit/__init__.py +4 -0
- strix/tools/file_edit/file_edit_actions.py +141 -0
- strix/tools/file_edit/file_edit_actions_schema.xml +128 -0
- strix/tools/finish/__init__.py +4 -0
- strix/tools/finish/finish_actions.py +174 -0
- strix/tools/finish/finish_actions_schema.xml +45 -0
- strix/tools/notes/__init__.py +14 -0
- strix/tools/notes/notes_actions.py +191 -0
- strix/tools/notes/notes_actions_schema.xml +150 -0
- strix/tools/proxy/__init__.py +20 -0
- strix/tools/proxy/proxy_actions.py +101 -0
- strix/tools/proxy/proxy_actions_schema.xml +267 -0
- strix/tools/proxy/proxy_manager.py +785 -0
- strix/tools/python/__init__.py +4 -0
- strix/tools/python/python_actions.py +47 -0
- strix/tools/python/python_actions_schema.xml +131 -0
- strix/tools/python/python_instance.py +172 -0
- strix/tools/python/python_manager.py +131 -0
- strix/tools/registry.py +196 -0
- strix/tools/reporting/__init__.py +6 -0
- strix/tools/reporting/reporting_actions.py +63 -0
- strix/tools/reporting/reporting_actions_schema.xml +30 -0
- strix/tools/terminal/__init__.py +4 -0
- strix/tools/terminal/terminal_actions.py +35 -0
- strix/tools/terminal/terminal_actions_schema.xml +146 -0
- strix/tools/terminal/terminal_manager.py +151 -0
- strix/tools/terminal/terminal_session.py +447 -0
- strix/tools/thinking/__init__.py +4 -0
- strix/tools/thinking/thinking_actions.py +18 -0
- strix/tools/thinking/thinking_actions_schema.xml +52 -0
- strix/tools/web_search/__init__.py +4 -0
- strix/tools/web_search/web_search_actions.py +80 -0
- strix/tools/web_search/web_search_actions_schema.xml +83 -0
- strix_agent-0.4.0.dist-info/LICENSE +201 -0
- strix_agent-0.4.0.dist-info/METADATA +282 -0
- strix_agent-0.4.0.dist-info/RECORD +118 -0
- strix_agent-0.4.0.dist-info/WHEEL +4 -0
- strix_agent-0.4.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<tools>
|
|
2
|
+
<tool name="web_search">
|
|
3
|
+
<description>Search the web using Perplexity AI for real-time information and current events.
|
|
4
|
+
|
|
5
|
+
This is your PRIMARY research tool - use it extensively and liberally for:
|
|
6
|
+
- Current vulnerabilities, CVEs, and security advisories
|
|
7
|
+
- Latest attack techniques, exploits, and proof-of-concepts
|
|
8
|
+
- Technology-specific security research and documentation
|
|
9
|
+
- Target reconnaissance and OSINT gathering
|
|
10
|
+
- Security tool documentation and usage guides
|
|
11
|
+
- Incident response and threat intelligence
|
|
12
|
+
- Compliance frameworks and security standards
|
|
13
|
+
- Bug bounty reports and security research findings
|
|
14
|
+
- Security conference talks and research papers
|
|
15
|
+
|
|
16
|
+
The tool provides intelligent, contextual responses with current information that may not be in your training data. Use it early and often during security assessments to gather the most up-to-date factual information.</description>
|
|
17
|
+
<details>This tool leverages Perplexity AI's sonar-reasoning model to search the web and provide intelligent, contextual responses to queries. It's essential for effective cybersecurity work as it provides access to the latest vulnerabilities, attack vectors, security tools, and defensive techniques. The AI understands security context and can synthesize information from multiple sources.</details>
|
|
18
|
+
<parameters>
|
|
19
|
+
<parameter name="query" type="string" required="true">
|
|
20
|
+
<description>The search query or question you want to research. Be specific and include relevant technical terms, version numbers, or context for better results. Make it as detailed as possible, with the context of the current security assessment.</description>
|
|
21
|
+
</parameter>
|
|
22
|
+
</parameters>
|
|
23
|
+
<returns type="Dict[str, Any]">
|
|
24
|
+
<description>Response containing: - success: Whether the search was successful - query: The original search query - content: AI-generated response with current information - message: Status message</description>
|
|
25
|
+
</returns>
|
|
26
|
+
<examples>
|
|
27
|
+
# Found specific service version during reconnaissance
|
|
28
|
+
<function=web_search>
|
|
29
|
+
<parameter=query>I found OpenSSH 7.4 running on port 22. Are there any known exploits or privilege escalation techniques for this specific version?</parameter>
|
|
30
|
+
</function>
|
|
31
|
+
|
|
32
|
+
# Encountered WAF blocking attempts
|
|
33
|
+
<function=web_search>
|
|
34
|
+
<parameter=query>Cloudflare is blocking my SQLmap attempts on this login form. What are the latest bypass techniques for Cloudflare WAF in 2024?</parameter>
|
|
35
|
+
</function>
|
|
36
|
+
|
|
37
|
+
# Need to exploit discovered CMS
|
|
38
|
+
<function=web_search>
|
|
39
|
+
<parameter=query>Target is running WordPress 5.8.3 with WooCommerce 6.1.1. What are the current RCE exploits for this combination?</parameter>
|
|
40
|
+
</function>
|
|
41
|
+
|
|
42
|
+
# Stuck on privilege escalation
|
|
43
|
+
<function=web_search>
|
|
44
|
+
<parameter=query>I have low-privilege shell on Ubuntu 20.04 with kernel 5.4.0-74-generic. What local privilege escalation exploits work for this exact kernel version?</parameter>
|
|
45
|
+
</function>
|
|
46
|
+
|
|
47
|
+
# Need lateral movement in Active Directory
|
|
48
|
+
<function=web_search>
|
|
49
|
+
<parameter=query>I compromised a domain user account in Windows Server 2019 AD environment. What are the best techniques to escalate to Domain Admin without triggering EDR?</parameter>
|
|
50
|
+
</function>
|
|
51
|
+
|
|
52
|
+
# Encountered specific error during exploitation
|
|
53
|
+
<function=web_search>
|
|
54
|
+
<parameter=query>Getting "Access denied" when trying to upload webshell to IIS 10.0. What are alternative file upload bypass techniques for Windows IIS?</parameter>
|
|
55
|
+
</function>
|
|
56
|
+
|
|
57
|
+
# Need to bypass endpoint protection
|
|
58
|
+
<function=web_search>
|
|
59
|
+
<parameter=query>Target has CrowdStrike Falcon running. What are the latest techniques to bypass this EDR for payload execution and persistence?</parameter>
|
|
60
|
+
</function>
|
|
61
|
+
|
|
62
|
+
# Research target's infrastructure for attack surface
|
|
63
|
+
<function=web_search>
|
|
64
|
+
<parameter=query>I found target company "AcmeCorp" uses Office 365 and Azure. What are the common misconfigurations and attack vectors for this cloud setup?</parameter>
|
|
65
|
+
</function>
|
|
66
|
+
|
|
67
|
+
# Found interesting subdomain during recon
|
|
68
|
+
<function=web_search>
|
|
69
|
+
<parameter=query>Discovered staging.target.com running Jenkins 2.401.3. What are the current authentication bypass and RCE exploits for this Jenkins version?</parameter>
|
|
70
|
+
</function>
|
|
71
|
+
|
|
72
|
+
# Need alternative tools when primary fails
|
|
73
|
+
<function=web_search>
|
|
74
|
+
<parameter=query>Nmap is being detected and blocked by the target's IPS. What are stealthy alternatives for port scanning that evade modern intrusion prevention systems?</parameter>
|
|
75
|
+
</function>
|
|
76
|
+
|
|
77
|
+
# Finding best security tools for specific tasks
|
|
78
|
+
<function=web_search>
|
|
79
|
+
<parameter=query>What is the best Python pip package in 2025 for JWT security testing and manipulation, including cracking weak secrets and algorithm confusion attacks?</parameter>
|
|
80
|
+
</function>
|
|
81
|
+
</examples>
|
|
82
|
+
</tool>
|
|
83
|
+
</tools>
|
|
@@ -0,0 +1,201 @@
|
|
|
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
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 OmniSecure Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: strix-agent
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Open-source AI Hackers for your apps
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Keywords: cybersecurity,security,vulnerability,scanner,pentest,agent,ai,cli
|
|
7
|
+
Author: Strix
|
|
8
|
+
Author-email: hi@usestrix.com
|
|
9
|
+
Requires-Python: >=3.12,<4.0
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: Information Technology
|
|
13
|
+
Classifier: Intended Audience :: System Administrators
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Topic :: Security
|
|
21
|
+
Requires-Dist: docker (>=7.1.0,<8.0.0)
|
|
22
|
+
Requires-Dist: fastapi
|
|
23
|
+
Requires-Dist: gql[requests] (>=3.5.3,<4.0.0)
|
|
24
|
+
Requires-Dist: ipython (>=9.3.0,<10.0.0)
|
|
25
|
+
Requires-Dist: libtmux (>=0.46.2,<0.47.0)
|
|
26
|
+
Requires-Dist: litellm[proxy] (>=1.79.1,<1.80.0)
|
|
27
|
+
Requires-Dist: numpydoc (>=1.8.0,<2.0.0)
|
|
28
|
+
Requires-Dist: openai (>=1.99.5,<1.100.0)
|
|
29
|
+
Requires-Dist: openhands-aci (>=0.3.0,<0.4.0)
|
|
30
|
+
Requires-Dist: playwright (>=1.48.0,<2.0.0)
|
|
31
|
+
Requires-Dist: pydantic[email] (>=2.11.3,<3.0.0)
|
|
32
|
+
Requires-Dist: pyte (>=0.8.1,<0.9.0)
|
|
33
|
+
Requires-Dist: requests (>=2.32.0,<3.0.0)
|
|
34
|
+
Requires-Dist: rich
|
|
35
|
+
Requires-Dist: tenacity (>=9.0.0,<10.0.0)
|
|
36
|
+
Requires-Dist: textual (>=4.0.0,<5.0.0)
|
|
37
|
+
Requires-Dist: uvicorn
|
|
38
|
+
Requires-Dist: xmltodict (>=0.13.0,<0.14.0)
|
|
39
|
+
Description-Content-Type: text/markdown
|
|
40
|
+
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://usestrix.com/">
|
|
43
|
+
<img src=".github/logo.png" width="150" alt="Strix Logo">
|
|
44
|
+
</a>
|
|
45
|
+
</p>
|
|
46
|
+
|
|
47
|
+
<h1 align="center">Strix</h1>
|
|
48
|
+
|
|
49
|
+
<h2 align="center">Open-source AI Hackers to secure your Apps</h2>
|
|
50
|
+
|
|
51
|
+
<div align="center">
|
|
52
|
+
|
|
53
|
+
[](https://pypi.org/project/strix-agent/)
|
|
54
|
+
[](https://pypi.org/project/strix-agent/)
|
|
55
|
+
[](https://pepy.tech/projects/strix-agent)
|
|
56
|
+
[](LICENSE)
|
|
57
|
+
|
|
58
|
+
[](https://github.com/usestrix/strix)
|
|
59
|
+
[](https://discord.gg/YjKFvEZSdZ)
|
|
60
|
+
[](https://usestrix.com)
|
|
61
|
+
|
|
62
|
+
<a href="https://trendshift.io/repositories/15362" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15362" alt="usestrix%2Fstrix | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<br>
|
|
67
|
+
|
|
68
|
+
<div align="center">
|
|
69
|
+
<img src=".github/screenshot.png" alt="Strix Demo" width="800" style="border-radius: 16px;">
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<br>
|
|
73
|
+
|
|
74
|
+
> [!TIP]
|
|
75
|
+
> **New!** Strix now integrates seamlessly with GitHub Actions and CI/CD pipelines. Automatically scan for vulnerabilities on every pull request and block insecure code before it reaches production!
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🦉 Strix Overview
|
|
80
|
+
|
|
81
|
+
Strix are autonomous AI agents that act just like real hackers - they run your code dynamically, find vulnerabilities, and validate them through actual proof-of-concepts. Built for developers and security teams who need fast, accurate security testing without the overhead of manual pentesting or the false positives of static analysis tools.
|
|
82
|
+
|
|
83
|
+
**Key Capabilities:**
|
|
84
|
+
|
|
85
|
+
- 🔧 **Full hacker toolkit** out of the box
|
|
86
|
+
- 🤝 **Teams of agents** that collaborate and scale
|
|
87
|
+
- ✅ **Real validation** with PoCs, not false positives
|
|
88
|
+
- 💻 **Developer‑first** CLI with actionable reports
|
|
89
|
+
- 🔄 **Auto‑fix & reporting** to accelerate remediation
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## 🎯 Use Cases
|
|
93
|
+
|
|
94
|
+
- **Application Security Testing** - Detect and validate critical vulnerabilities in your applications
|
|
95
|
+
- **Rapid Penetration Testing** - Get penetration tests done in hours, not weeks, with compliance reports
|
|
96
|
+
- **Bug Bounty Automation** - Automate bug bounty research and generate PoCs for faster reporting
|
|
97
|
+
- **CI/CD Integration** - Run tests in CI/CD to block vulnerabilities before reaching production
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 🚀 Quick Start
|
|
102
|
+
|
|
103
|
+
**Prerequisites:**
|
|
104
|
+
- Docker (running)
|
|
105
|
+
- Python 3.12+
|
|
106
|
+
- An LLM provider key (e.g. [get OpenAI API key](https://platform.openai.com/api-keys) or use a local LLM)
|
|
107
|
+
|
|
108
|
+
### Installation & First Scan
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Install Strix
|
|
112
|
+
pipx install strix-agent
|
|
113
|
+
|
|
114
|
+
# Configure your AI provider
|
|
115
|
+
export STRIX_LLM="openai/gpt-5"
|
|
116
|
+
export LLM_API_KEY="your-api-key"
|
|
117
|
+
|
|
118
|
+
# Run your first security assessment
|
|
119
|
+
strix --target ./app-directory
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
> [!NOTE]
|
|
123
|
+
> First run automatically pulls the sandbox Docker image. Results are saved to `strix_runs/<run-name>`
|
|
124
|
+
|
|
125
|
+
## ☁️ Run Strix in Cloud
|
|
126
|
+
|
|
127
|
+
Want to skip the local setup, API keys, and unpredictable LLM costs? Run the hosted cloud version of Strix at **[app.usestrix.com](https://app.usestrix.com)**.
|
|
128
|
+
|
|
129
|
+
Launch a scan in just a few minutes—no setup or configuration required—and you’ll get:
|
|
130
|
+
|
|
131
|
+
- **A full pentest report** with validated findings and clear remediation steps
|
|
132
|
+
- **Shareable dashboards** your team can use to track fixes over time
|
|
133
|
+
- **CI/CD and GitHub integrations** to block risky changes before production
|
|
134
|
+
- **Continuous monitoring** so new vulnerabilities are caught quickly
|
|
135
|
+
|
|
136
|
+
[**Run your first pentest now →**](https://app.usestrix.com)
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## ✨ Features
|
|
141
|
+
|
|
142
|
+
### 🛠️ Agentic Security Tools
|
|
143
|
+
|
|
144
|
+
Strix agents come equipped with a comprehensive security testing toolkit:
|
|
145
|
+
|
|
146
|
+
- **Full HTTP Proxy** - Full request/response manipulation and analysis
|
|
147
|
+
- **Browser Automation** - Multi-tab browser for testing of XSS, CSRF, auth flows
|
|
148
|
+
- **Terminal Environments** - Interactive shells for command execution and testing
|
|
149
|
+
- **Python Runtime** - Custom exploit development and validation
|
|
150
|
+
- **Reconnaissance** - Automated OSINT and attack surface mapping
|
|
151
|
+
- **Code Analysis** - Static and dynamic analysis capabilities
|
|
152
|
+
- **Knowledge Management** - Structured findings and attack documentation
|
|
153
|
+
|
|
154
|
+
### 🎯 Comprehensive Vulnerability Detection
|
|
155
|
+
|
|
156
|
+
Strix can identify and validate a wide range of security vulnerabilities:
|
|
157
|
+
|
|
158
|
+
- **Access Control** - IDOR, privilege escalation, auth bypass
|
|
159
|
+
- **Injection Attacks** - SQL, NoSQL, command injection
|
|
160
|
+
- **Server-Side** - SSRF, XXE, deserialization flaws
|
|
161
|
+
- **Client-Side** - XSS, prototype pollution, DOM vulnerabilities
|
|
162
|
+
- **Business Logic** - Race conditions, workflow manipulation
|
|
163
|
+
- **Authentication** - JWT vulnerabilities, session management
|
|
164
|
+
- **Infrastructure** - Misconfigurations, exposed services
|
|
165
|
+
|
|
166
|
+
### 🕸️ Graph of Agents
|
|
167
|
+
|
|
168
|
+
Advanced multi-agent orchestration for comprehensive security testing:
|
|
169
|
+
|
|
170
|
+
- **Distributed Workflows** - Specialized agents for different attacks and assets
|
|
171
|
+
- **Scalable Testing** - Parallel execution for fast comprehensive coverage
|
|
172
|
+
- **Dynamic Coordination** - Agents collaborate and share discoveries
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 💻 Usage Examples
|
|
177
|
+
|
|
178
|
+
### Basic Usage
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# Scan a local codebase
|
|
182
|
+
strix --target ./app-directory
|
|
183
|
+
|
|
184
|
+
# Security review of a GitHub repository
|
|
185
|
+
strix --target https://github.com/org/repo
|
|
186
|
+
|
|
187
|
+
# Black-box web application assessment
|
|
188
|
+
strix --target https://your-app.com
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Advanced Testing Scenarios
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Grey-box authenticated testing
|
|
195
|
+
strix --target https://your-app.com --instruction "Perform authenticated testing using credentials: user:pass"
|
|
196
|
+
|
|
197
|
+
# Multi-target testing (source code + deployed app)
|
|
198
|
+
strix -t https://github.com/org/app -t https://your-app.com
|
|
199
|
+
|
|
200
|
+
# Focused testing with custom instructions
|
|
201
|
+
strix --target api.your-app.com --instruction "Focus on business logic flaws and IDOR vulnerabilities"
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### 🤖 Headless Mode
|
|
205
|
+
|
|
206
|
+
Run Strix programmatically without interactive UI using the `-n/--non-interactive` flag—perfect for servers and automated jobs. The CLI prints real-time vulnerability findings, and the final report before exiting. Exits with non-zero code when vulnerabilities are found.
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
strix -n --target https://your-app.com
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### 🔄 CI/CD (GitHub Actions)
|
|
213
|
+
|
|
214
|
+
Strix can be added to your pipeline to run a security test on pull requests with a lightweight GitHub Actions workflow:
|
|
215
|
+
|
|
216
|
+
```yaml
|
|
217
|
+
name: strix-penetration-test
|
|
218
|
+
|
|
219
|
+
on:
|
|
220
|
+
pull_request:
|
|
221
|
+
|
|
222
|
+
jobs:
|
|
223
|
+
security-scan:
|
|
224
|
+
runs-on: ubuntu-latest
|
|
225
|
+
steps:
|
|
226
|
+
- uses: actions/checkout@v4
|
|
227
|
+
|
|
228
|
+
- name: Install Strix
|
|
229
|
+
run: pipx install strix-agent
|
|
230
|
+
|
|
231
|
+
- name: Run Strix
|
|
232
|
+
env:
|
|
233
|
+
STRIX_LLM: ${{ secrets.STRIX_LLM }}
|
|
234
|
+
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
|
|
235
|
+
|
|
236
|
+
run: strix -n -t ./
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### ⚙️ Configuration
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
export STRIX_LLM="openai/gpt-5"
|
|
243
|
+
export LLM_API_KEY="your-api-key"
|
|
244
|
+
|
|
245
|
+
# Optional
|
|
246
|
+
export LLM_API_BASE="your-api-base-url" # if using a local model, e.g. Ollama, LMStudio
|
|
247
|
+
export PERPLEXITY_API_KEY="your-api-key" # for search capabilities
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
[OpenAI's GPT-5](https://openai.com/api/) (`openai/gpt-5`) and [Anthropic's Claude Sonnet 4.5](https://claude.com/platform/api) (`anthropic/claude-sonnet-4-5`) are the recommended models for best results with Strix. We also support many [other options](https://docs.litellm.ai/docs/providers), including cloud and local models, though their performance and reliability may vary.
|
|
251
|
+
|
|
252
|
+
## 🤝 Contributing
|
|
253
|
+
|
|
254
|
+
We welcome contributions from the community! There are several ways to contribute:
|
|
255
|
+
|
|
256
|
+
### Code Contributions
|
|
257
|
+
See our [Contributing Guide](CONTRIBUTING.md) for details on:
|
|
258
|
+
- Setting up your development environment
|
|
259
|
+
- Running tests and quality checks
|
|
260
|
+
- Submitting pull requests
|
|
261
|
+
- Code style guidelines
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Prompt Modules Collection
|
|
265
|
+
Help expand our collection of specialized prompt modules for AI agents:
|
|
266
|
+
- Advanced testing techniques for vulnerabilities, frameworks, and technologies
|
|
267
|
+
- See [Prompt Modules Documentation](strix/prompts/README.md) for guidelines
|
|
268
|
+
- Submit via [pull requests](https://github.com/usestrix/strix/pulls) or [issues](https://github.com/usestrix/strix/issues)
|
|
269
|
+
|
|
270
|
+
## 👥 Join Our Community
|
|
271
|
+
|
|
272
|
+
Have questions? Found a bug? Want to contribute? **[Join our Discord!](https://discord.gg/YjKFvEZSdZ)**
|
|
273
|
+
|
|
274
|
+
## 🌟 Support the Project
|
|
275
|
+
|
|
276
|
+
**Love Strix?** Give us a ⭐ on GitHub!
|
|
277
|
+
|
|
278
|
+
> [!WARNING]
|
|
279
|
+
> Only test apps you own or have permission to test. You are responsible for using Strix ethically and legally.
|
|
280
|
+
|
|
281
|
+
</div>
|
|
282
|
+
|