You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,58 @@ To override these behaviours edit the docker-compose.yml file's misp-core volume
96
96
If it is just a default setting that is meant to be set if not already set by the user, add it in one of the `*.default.json` files.
97
97
If it is a setting controlled by an environment variable which is meant to override whatever is set, add it in one of the `*.envars.json` files (note that you can still specify a default value).
98
98
99
+
### MISP-Guard (optional)
100
+
101
+
[MISP-Guard](https://github.com/MISP/misp-guard) is a mitmproxy add-on designed to apply configurable filters that prevent the unintentional leakage of sensitive threat intelligence data while facilitating controlled information sharing.
102
+
103
+
It is disabled by default, but can be enabled using compose profiles.
104
+
105
+
#### Enabling
106
+
107
+
1. Enable the profile in your `.env` file:
108
+
```bash
109
+
COMPOSE_PROFILES=misp-guard
110
+
```
111
+
2. Ensure `misp-core` is configured to use a proxy:
112
+
```bash
113
+
PROXY_ENABLE=true
114
+
PROXY_HOST=misp-guard
115
+
# this must match GUARD_PORT (DEFAULT=8888)
116
+
PROXY_PORT=8888
117
+
```
118
+
119
+
#### Configuration
120
+
121
+
- Rules are defined in `guard/config.json`.
122
+
- The container automatically replaces the `misp-core` IP at runtime using `entrypoint.sh`.
123
+
124
+
The following format is required to target the misp-core, the IP is replaced with the misp-core container's IP at runtime.
125
+
```json
126
+
{
127
+
"instances": {
128
+
"misp_container": {
129
+
"ip": "placeholder"
130
+
}
131
+
}
132
+
}
133
+
```
134
+
135
+
- After making changes to `guard/config.json` restart the container to apply the changes:
136
+
```bash
137
+
docker compose restart misp-guard
138
+
```
139
+
140
+
#### Environment Variables
141
+
142
+
```bash
143
+
# Port for misp-guard to listen on (must match PROXY_PORT)
144
+
# Default: 8888
145
+
GUARD_PORT=8888
146
+
147
+
# optional: mitmdump misp-guard runtime arguments (space separated, no quotes)
0 commit comments