Blog · Development
Samurai Eye: auditing, forking and self-hosting an OSINT dashboard on Coolify

We wanted a global intelligence dashboard running on our own infrastructure: conflicts, markets, military activity and OSINT signals on a live map. The starting point was World Monitor, an open source project under AGPL-3.0. The result is Samurai Eye, live at eye.n3xus.dev.
Before running a single line of someone else’s code, we did an audit. After that, the rebrand and the deploy showed that “changing the name” touches much more than text.
In short
- We audited the repository read-only: install scripts, dependencies, git history and CI. We found no malicious code and no leaked secrets.
- The automated rebrand broke CSP hashes, line endings and even the link preview, because of a two-level subdomain.
- The project decided between “cloud or self-hosted” based on the domain. We created an explicit self-host flag and unlocked the paid features, which make no sense on a private instance.
- The deploy uses Docker Compose on Coolify, behind Cloudflare Tunnel, with secrets generated by Coolify itself.
The audit before running anything
The repository had 7,831 files and 8,291 commits. We cloned it without executing anything and split the analysis into five fronts: supply chain, malicious code, secrets in the history, application vulnerabilities and CI/Docker.
- Installation: the only
postinstallscript generates local files, with no network access. - Dependencies: every package resolves to the official npm registry, except two kept in the repository itself as security fixes, which we checked against the originals.
- Known vulnerabilities:
npm audit --package-lock-onlyreported 1 critical and 3 high in production, all in transitive dependencies. - Secrets: we scanned the blobs of the entire history and only found test examples and keys that are public by design.
The real weak point was something else: the desktop installers are distributed unsigned. Since we only use the Docker image, that did not affect us.
The rebrand and what it broke
Changing the name and domain rewrote 3,650 files. Three side effects showed up:
| Symptom | Cause | Fix |
|---|---|---|
| A diff of hundreds of thousands of lines | Git’s core.autocrlf on Windows wrote CRLF |
Normalize to LF and redo the commit |
| Scripts blocked by the CSP | The text of inline scripts changed, and with it the sha256 hash |
Recalculate the hashes in the headers |
| Link preview without an image | www.eye.n3xus.dev is a two-level subdomain |
Use only the main domain |
The last one was the trickiest. Cloudflare’s Universal SSL certificate covers the root domain and first-level subdomains, but not deeper levels. The share image pointed to a host that would never have valid HTTPS. We replaced 5,469 references with the main domain.
We used the rebrand to replace the interface emojis with SVG icons: 213 icons from Lucide and 271 flags. On Windows, emoji flags show up as letters.
Truly self-hosted
The original code turned on features of the hosted version (API subdomain, analytics, performance monitoring and a subscription banner) by looking at the page’s domain. With our domain, it started behaving like the original project’s cloud and calling services that do not exist here.
The fix was a build flag, VITE_SELF_HOSTED, turned on in the Docker image. With it, the API stays on the same origin and the external integrations are turned off. The paid features also got out of the way: with no accounts and no billing, the instance grants full access to each session, protected by two server flags that must both be turned on.
The deploy on Coolify
We used the Docker Compose build pack with three precautions:
- Secrets:
SERVICE_HEX_64_*magic variables, which Coolify generates and stores. Nobody types a password. - No
ports:: the Coolify documentation warns that a published port bypasses the proxy and can expose an internal service. - Unique names: internal services with their own prefix, because other apps on the same network also have a
redis.
The first deploy came up without a domain: the field had been filled in but not saved, and Traefik answered “no available server”. Checking the field after reloading the page solved it. In the tunnel, we added the hostname rule to the configuration file and created the CNAME with cloudflared tunnel route dns. Each full build took about 20 minutes.
How to verify
curl -s -o /dev/null -w "%{http_code}\n" https://eye.n3xus.dev/
curl -s https://eye.n3xus.dev/ | grep -o 'og:image" content="[^"]*'
We also ran the test suite on the original version and on the fork, on the same operating system. We only treated as a regression what failed on the fork and passed on the original.
What we learned
- Audit before installing. Reading the install scripts and the lockfile takes little time and avoids surprises.
- A rebrand is not find and replace: hashes, line endings and subdomain levels change too.
- Logic that depends on the domain needs an explicit flag when the product changes owners.
- Compare test failures against a baseline. Without one, environment problems look like regressions.
References
- World Monitor (original repository)
- GNU AGPL v3
- Cloudflare: Universal SSL limitations
- Cloudflare Tunnel: configuration file
- Coolify: Docker Compose and magic variables
- npm audit
Want to run an open source tool securely on your infrastructure? Talk to us.

