S-Dreamer commited on
Commit
5b3e9a1
·
verified ·
1 Parent(s): d47014e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +164 -177
README.md CHANGED
@@ -17,7 +17,7 @@ thumbnail: >-
17
  https://cdn-uploads.huggingface.co/production/uploads/67c714e90b99a2332e310979/L02-prFfHa7eBZGVf4uvR.jpeg
18
  ---
19
 
20
- Purple Team Code Workbench
21
 
22
  <p align="center">
23
  <img src="https://cdn-uploads.huggingface.co/production/uploads/67c714e90b99a2332e310979/L02-prFfHa7eBZGVf4uvR.jpeg" width="720" alt="Purple Team Code Workbench Banner"/>
@@ -34,40 +34,53 @@ Purple Team Code Workbench
34
 
35
 
36
 
37
- Overview
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  Purple Team Code Workbench is a Streamlit-based operational interface designed for structured, scope-aware security engineering workflows.
40
 
41
  The platform focuses on:
42
 
43
- * Authorized assessment workflows
44
- * Defensive and adversarial simulation support
45
- * Code generation for security operations
46
- * Evidence handling and finding management
47
- * Prompt-assisted workflow acceleration
48
- * Report artifact generation
49
- * Research and analysis augmentation
50
 
51
  The system is intentionally structured around controlled workflows rather than unrestricted autonomous execution. Because the internet already contains enough entropy generators wearing hoodies and calling themselves “operators.”
52
 
53
-
54
 
55
- Core Design Principles
56
 
57
- Scope-First Architecture
58
 
59
  Every workflow begins with explicit authorization and target definition.
60
 
61
  The system is designed to reduce:
62
 
63
- * accidental scope drift
64
- * unsafe automation
65
- * uncontrolled execution paths
66
- * ambiguous operational state
67
 
68
-
69
 
70
- Human-in-the-Loop Control
71
 
72
  The workbench assists analysts and engineers rather than replacing operational judgment.
73
 
@@ -75,258 +88,232 @@ Generation ≠ execution.
75
 
76
  All generated output should be reviewed before use.
77
 
78
-
79
 
80
- Evidence-Centric Workflow
81
 
82
  Outputs are treated as operational artifacts:
83
 
84
- * findings
85
- * prompts
86
- * code snippets
87
- * reports
88
- * remediation notes
89
- * validation records
90
 
91
  The system emphasizes traceability and reproducibility over “magic AI behavior.”
92
 
93
  A tragically rare design choice in 2026.
94
 
95
-
96
 
97
- Features
98
 
99
- Current Capabilities
100
 
101
- * Streamlit-based UI
102
- * Scope-gated workflow controls
103
- * Security code generation surface
104
- * Passive recon helpers
105
- * Structured findings management
106
- * Markdown report export
107
- * Multi-model workflow support
108
- * Hugging Face Space deployment compatibility
109
 
110
-
111
 
112
- Planned Capabilities
113
 
114
- * Agent orchestration
115
- * Prompt chaining
116
- * Workflow templates
117
- * Typed finding schemas
118
- * Evidence graphing
119
- * Drift-aware execution state
120
- * Multi-provider inference routing
121
- * Report diff/version tracking
122
- * Local LLM runtime support
123
- * LangGraph integration
124
- * MCP-compatible tool surfaces
125
 
126
-
127
 
128
- Supported Models
129
 
130
  Current configured models:
131
 
132
- Model Purpose
133
- HauhauCS/Gemma-4-E4B-Uncensored-HauhauCS-Aggressive Experimental coding and reasoning
134
- DeepHat/DeepHat-V1-7B Security-oriented generation workflows
135
- llama3-8b-8192 General-purpose assistant workflows
 
136
 
137
  Model availability depends on provider access and deployment configuration.
138
 
139
-
140
 
141
- Repository Structure
142
 
143
- .
144
- ├── app.py
145
- ├── requirements.txt
146
- ├── README.md
147
- ├── assets/
148
- ├── workflows/
149
- ├── prompts/
150
- ├── reports/
151
- ├── utils/
152
- └── components/
153
 
154
  Recommended modularization:
155
 
156
- Directory Purpose
157
- workflows/ Workflow orchestration logic
158
- prompts/ Prompt templates and chains
159
- reports/ Generated report artifacts
160
- utils/ Shared utilities
161
- components/ Streamlit UI components
162
- assets/ Static images and branding
 
163
 
164
-
165
 
166
- Installation
167
 
168
- Local Development
169
 
170
  Clone the repository:
171
 
172
- git clone https://github.com/your-org/purple-team-code-workbench.git
173
- cd purple-team-code-workbench
174
 
175
  Create a virtual environment:
176
 
177
- python -m venv .venv
178
 
179
  Activate the environment:
180
 
181
- Linux/macOS
182
 
183
- source .venv/bin/activate
184
 
185
- Windows
186
 
187
- .venv\Scripts\activate
188
 
189
  Install dependencies:
190
 
191
- pip install -r requirements.txt
192
 
193
  Run the application:
194
 
195
- streamlit run app.py
196
 
197
-
198
 
199
- Hugging Face Spaces Deployment
200
 
201
  This repository is compatible with:
202
 
203
- * Hugging Face Streamlit Spaces
204
- * CPU deployments
205
- * OAuth-enabled Spaces
206
- * External inference providers
207
 
208
  Example metadata:
209
 
210
- sdk: streamlit
211
- sdk_version: 1.57.0
212
- app_file: app.py
213
- license: apache-2.0
214
 
215
-
216
 
217
- Security Philosophy
218
 
219
  This project is intended for:
220
 
221
- * authorized testing
222
- * defensive research
223
- * purple-team simulation
224
- * workflow engineering
225
- * educational environments
226
- * internal security operations
227
 
228
  This repository is not intended for:
229
 
230
- * unauthorized access
231
- * destructive automation
232
- * malware deployment
233
- * credential theft
234
- * persistence tooling
235
- * uncontrolled exploitation
236
 
237
  Users are responsible for complying with all applicable laws and authorization requirements.
238
 
239
  Tiny administrative detail. Society gets strangely emotional about “cybercrime.”
240
 
241
-
242
 
243
- Recommended Operational Controls
244
 
245
  If deploying in production environments:
246
 
247
- * Require authentication
248
- * Log workflow activity
249
- * Separate trusted/untrusted prompts
250
- * Sandbox execution environments
251
- * Restrict outbound networking
252
- * Validate generated artifacts
253
- * Maintain immutable audit trails
254
- * Enforce scoped execution policies
255
-
256
-
257
-
258
- Example Workflow
259
-
260
- Scope Definition
261
-
262
- Passive Recon
263
-
264
- Evidence Collection
265
-
266
- Finding Classification
267
-
268
- Code/Prompt Generation
269
-
270
- Human Validation
271
-
272
- Report Export
273
 
274
-
275
 
276
- Development Roadmap
277
 
278
- Phase 1
279
 
280
- * Scope-gated workflows
281
- * Findings management
282
- * Report export
283
- * Prompt surface
284
 
285
- Phase 2
286
 
287
- * Agent coordination
288
- * Structured memory
289
- * Typed contracts
290
- * Multi-model routing
 
291
 
292
- Phase 3
 
 
 
 
293
 
294
- * Drift-aware orchestration
295
- * Evidence graphs
296
- * Policy enforcement engine
297
- * Autonomous validation loops
 
298
 
299
-
300
 
301
- Contributing
302
 
303
  Contributions should prioritize:
304
 
305
- * clarity
306
- * safety
307
- * reproducibility
308
- * deterministic behavior
309
- * typed interfaces
310
- * operational traceability
311
 
312
  Before submitting:
313
 
314
- * run linting
315
- * validate workflows
316
- * document assumptions
317
- * avoid opaque automation behavior
318
 
319
-
320
 
321
- License
322
 
323
  Licensed under the Apache 2.0 License.
324
 
325
  See the LICENSE file for details.
326
 
327
-
328
 
329
- Disclaimer
330
 
331
  This project is provided for authorized security research, defensive engineering, and educational purposes only.
332
 
@@ -334,14 +321,14 @@ The maintainers assume no liability for misuse, unauthorized deployment, or oper
334
 
335
  Because eventually someone always tries to turn a workflow engine into a cyberpunk side quest.
336
 
337
-
338
 
339
- Acknowledgements
340
 
341
  Built with:
342
 
343
- * Streamlit
344
- * Hugging Face
345
- * Python Software Foundation
346
 
347
  Inspired by structured operational engineering, purple-team methodology, and the stubborn belief that security tooling should behave like systems engineering rather than ritual magic.
 
17
  https://cdn-uploads.huggingface.co/production/uploads/67c714e90b99a2332e310979/L02-prFfHa7eBZGVf4uvR.jpeg
18
  ---
19
 
20
+ # Purple Team Code Workbench
21
 
22
  <p align="center">
23
  <img src="https://cdn-uploads.huggingface.co/production/uploads/67c714e90b99a2332e310979/L02-prFfHa7eBZGVf4uvR.jpeg" width="720" alt="Purple Team Code Workbench Banner"/>
 
34
 
35
 
36
 
37
+ <p align="center">
38
+ <strong>Streamlit-powered code generation and workflow orchestration surface for authorized purple-team operations.</strong>
39
+ </p>
40
+
41
+ <p align="center">
42
+ <img alt="Python" src="https://img.shields.io/badge/python-3.11%2B-blue">
43
+ <img alt="Streamlit" src="https://img.shields.io/badge/streamlit-1.57.0-red">
44
+ <img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-green">
45
+ <img alt="Security" src="https://img.shields.io/badge/focus-purple--team-purple">
46
+ </p>
47
+
48
+ ---
49
+
50
+ ## Overview
51
 
52
  Purple Team Code Workbench is a Streamlit-based operational interface designed for structured, scope-aware security engineering workflows.
53
 
54
  The platform focuses on:
55
 
56
+ - Authorized assessment workflows
57
+ - Defensive and adversarial simulation support
58
+ - Code generation for security operations
59
+ - Evidence handling and finding management
60
+ - Prompt-assisted workflow acceleration
61
+ - Report artifact generation
62
+ - Research and analysis augmentation
63
 
64
  The system is intentionally structured around controlled workflows rather than unrestricted autonomous execution. Because the internet already contains enough entropy generators wearing hoodies and calling themselves “operators.”
65
 
66
+ ---
67
 
68
+ ## Core Design Principles
69
 
70
+ ### Scope-First Architecture
71
 
72
  Every workflow begins with explicit authorization and target definition.
73
 
74
  The system is designed to reduce:
75
 
76
+ - accidental scope drift
77
+ - unsafe automation
78
+ - uncontrolled execution paths
79
+ - ambiguous operational state
80
 
81
+ ---
82
 
83
+ ### Human-in-the-Loop Control
84
 
85
  The workbench assists analysts and engineers rather than replacing operational judgment.
86
 
 
88
 
89
  All generated output should be reviewed before use.
90
 
91
+ ---
92
 
93
+ ### Evidence-Centric Workflow
94
 
95
  Outputs are treated as operational artifacts:
96
 
97
+ - findings
98
+ - prompts
99
+ - code snippets
100
+ - reports
101
+ - remediation notes
102
+ - validation records
103
 
104
  The system emphasizes traceability and reproducibility over “magic AI behavior.”
105
 
106
  A tragically rare design choice in 2026.
107
 
108
+ ---
109
 
110
+ ## Features
111
 
112
+ ### Current Capabilities
113
 
114
+ - Streamlit-based UI
115
+ - Scope-gated workflow controls
116
+ - Security code generation surface
117
+ - Passive recon helpers
118
+ - Structured findings management
119
+ - Markdown report export
120
+ - Multi-model workflow support
121
+ - Hugging Face Space deployment compatibility
122
 
123
+ ---
124
 
125
+ ### Planned Capabilities
126
 
127
+ - Agent orchestration
128
+ - Prompt chaining
129
+ - Workflow templates
130
+ - Typed finding schemas
131
+ - Evidence graphing
132
+ - Drift-aware execution state
133
+ - Multi-provider inference routing
134
+ - Report diff/version tracking
135
+ - Local LLM runtime support
136
+ - LangGraph integration
137
+ - MCP-compatible tool surfaces
138
 
139
+ ---
140
 
141
+ ## Supported Models
142
 
143
  Current configured models:
144
 
145
+ | Model | Purpose |
146
+ |---|---|
147
+ | HauhauCS/Gemma-4-E4B-Uncensored-HauhauCS-Aggressive | Experimental coding and reasoning |
148
+ | DeepHat/DeepHat-V1-7B | Security-oriented generation workflows |
149
+ | llama3-8b-8192 | General-purpose assistant workflows |
150
 
151
  Model availability depends on provider access and deployment configuration.
152
 
153
+ ---
154
 
155
+ ## Repository Structure
156
 
157
+ text . ├── app.py ├── requirements.txt ├── README.md ├── assets/ ├── workflows/ ├── prompts/ ├── reports/ ├── utils/ └── components/
 
 
 
 
 
 
 
 
 
158
 
159
  Recommended modularization:
160
 
161
+ | Directory | Purpose |
162
+ |---|---|
163
+ | workflows/ | Workflow orchestration logic |
164
+ | prompts/ | Prompt templates and chains |
165
+ | reports/ | Generated report artifacts |
166
+ | utils/ | Shared utilities |
167
+ | components/ | Streamlit UI components |
168
+ | assets/ | Static images and branding |
169
 
170
+ ---
171
 
172
+ ## Installation
173
 
174
+ ### Local Development
175
 
176
  Clone the repository:
177
 
178
+ bash git clone https://github.com/your-org/purple-team-code-workbench.git cd purple-team-code-workbench
 
179
 
180
  Create a virtual environment:
181
 
182
+ bash python -m venv .venv
183
 
184
  Activate the environment:
185
 
186
+ #### Linux/macOS
187
 
188
+ bash source .venv/bin/activate
189
 
190
+ #### Windows
191
 
192
+ powershell .venv\Scripts\activate
193
 
194
  Install dependencies:
195
 
196
+ bash pip install -r requirements.txt
197
 
198
  Run the application:
199
 
200
+ bash streamlit run app.py
201
 
202
+ ---
203
 
204
+ ## Hugging Face Spaces Deployment
205
 
206
  This repository is compatible with:
207
 
208
+ - Hugging Face Streamlit Spaces
209
+ - CPU deployments
210
+ - OAuth-enabled Spaces
211
+ - External inference providers
212
 
213
  Example metadata:
214
 
215
+ yaml sdk: streamlit sdk_version: 1.57.0 app_file: app.py license: apache-2.0
 
 
 
216
 
217
+ ---
218
 
219
+ ## Security Philosophy
220
 
221
  This project is intended for:
222
 
223
+ - authorized testing
224
+ - defensive research
225
+ - purple-team simulation
226
+ - workflow engineering
227
+ - educational environments
228
+ - internal security operations
229
 
230
  This repository is not intended for:
231
 
232
+ - unauthorized access
233
+ - destructive automation
234
+ - malware deployment
235
+ - credential theft
236
+ - persistence tooling
237
+ - uncontrolled exploitation
238
 
239
  Users are responsible for complying with all applicable laws and authorization requirements.
240
 
241
  Tiny administrative detail. Society gets strangely emotional about “cybercrime.”
242
 
243
+ ---
244
 
245
+ ## Recommended Operational Controls
246
 
247
  If deploying in production environments:
248
 
249
+ - Require authentication
250
+ - Log workflow activity
251
+ - Separate trusted/untrusted prompts
252
+ - Sandbox execution environments
253
+ - Restrict outbound networking
254
+ - Validate generated artifacts
255
+ - Maintain immutable audit trails
256
+ - Enforce scoped execution policies
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
 
258
+ ---
259
 
260
+ ## Example Workflow
261
 
262
+ text Scope Definition ↓ Passive Recon ↓ Evidence Collection ↓ Finding Classification ↓ Code/Prompt Generation ↓ Human Validation ↓ Report Export
263
 
264
+ ---
 
 
 
265
 
266
+ ## Development Roadmap
267
 
268
+ ### Phase 1
269
+ - Scope-gated workflows
270
+ - Findings management
271
+ - Report export
272
+ - Prompt surface
273
 
274
+ ### Phase 2
275
+ - Agent coordination
276
+ - Structured memory
277
+ - Typed contracts
278
+ - Multi-model routing
279
 
280
+ ### Phase 3
281
+ - Drift-aware orchestration
282
+ - Evidence graphs
283
+ - Policy enforcement engine
284
+ - Autonomous validation loops
285
 
286
+ ---
287
 
288
+ ## Contributing
289
 
290
  Contributions should prioritize:
291
 
292
+ - clarity
293
+ - safety
294
+ - reproducibility
295
+ - deterministic behavior
296
+ - typed interfaces
297
+ - operational traceability
298
 
299
  Before submitting:
300
 
301
+ - run linting
302
+ - validate workflows
303
+ - document assumptions
304
+ - avoid opaque automation behavior
305
 
306
+ ---
307
 
308
+ ## License
309
 
310
  Licensed under the Apache 2.0 License.
311
 
312
  See the LICENSE file for details.
313
 
314
+ ---
315
 
316
+ ## Disclaimer
317
 
318
  This project is provided for authorized security research, defensive engineering, and educational purposes only.
319
 
 
321
 
322
  Because eventually someone always tries to turn a workflow engine into a cyberpunk side quest.
323
 
324
+ ---
325
 
326
+ ## Acknowledgements
327
 
328
  Built with:
329
 
330
+ - Streamlit
331
+ - Hugging Face
332
+ - Python Software Foundation
333
 
334
  Inspired by structured operational engineering, purple-team methodology, and the stubborn belief that security tooling should behave like systems engineering rather than ritual magic.