Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs: Update security alerts with DevSkim exclusions and review cadence

LearningCircuit1c85258e52d6
diff --git a/.github/SECURITY_ALERTS.md b/.github/SECURITY_ALERTS.md
index 31716e3423..faaf9ed5be 100644
--- a/.github/SECURITY_ALERTS.md
+++ b/.github/SECURITY_ALERTS.md
@@ -5,30 +5,26 @@ and determined to be false positives or intentionally suppressed.
## DS162092 - Hardcoded URLs
-**Status:** Suppressed for test files (expected behavior)
+**Status:** Excluded in DevSkim workflow via `exclude-rules`
### Explanation
-The ~1,356 alerts for hardcoded URLs are **false positives**:
+This rule is excluded because this research tool legitimately integrates with
+external APIs. All hardcoded URLs are intentional service endpoints:
-- **85%** are test fixtures for URL validation and SSRF protection testing
-- **10%** are localhost URLs used in test environments
-- **5%** are documentation examples
+- **ArXiv** - Academic paper repository (`https://arxiv.org/`)
+- **PubMed** - Medical literature database
+- **Semantic Scholar** - AI-powered research tool
+- **OpenAlex** - Open catalog of scholarly works
+- **Archive.org** - Wayback Machine integration
-### Why They Are Safe
+### Why Exclusion Is Safe
-1. **Test files explicitly test URL handling** - URLs like `http://example.com`,
- `http://localhost:8080` are intentional test data
-2. **SSRF validator module** - Production code uses
+1. **Legitimate API endpoints** - URLs are for real research services
+2. **SSRF protection** - Production code uses
`src/local_deep_research/security/ssrf_validator.py` to block dangerous URLs
-3. **Localhost URLs** - Never used in production code paths, only in test
- configurations
-
-### Example Locations
-
-- `tests/fuzz/test_security_fuzzing.py` - SSRF test cases
-- `tests/unit/security/` - Security validation tests
-- `docs/` - Documentation examples
+3. **No user-controlled URLs** - All URLs are hardcoded service endpoints
+4. **Test coverage** - URL handling is tested in `tests/fuzz/test_security_fuzzing.py`
---
@@ -98,7 +94,7 @@ All innerHTML usages have been reviewed and appropriate sanitization applied.
## DS176209 - Suspicious Comments
-**Status:** False positives (normal development comments)
+**Status:** Excluded in DevSkim workflow via `exclude-rules`
### Explanation
@@ -106,18 +102,12 @@ DevSkim flags comments containing words like `TODO`, `FIXME`, `HACK`, `BUG`,
`XXX` as "suspicious". These are **standard development annotations** used
to track technical debt and future work.
-### Why They Are Safe
+### Why Exclusion Is Safe
-1. **Standard practice** - TODO/FIXME comments are widely used in software
- development to mark areas for future improvement
-2. **No security impact** - These are plain text comments with no runtime effect
-3. **IDE support** - Most IDEs recognize and highlight these patterns
-
-### Example Locations
-
-- `src/local_deep_research/database/encrypted_db.py` - Implementation notes
-- `src/local_deep_research/news/api.py` - Future enhancement markers
-- Various source files with developer notes
+1. **Not a security rule** - This is a code quality check, not security
+2. **Standard practice** - TODO/FIXME comments are used in every codebase
+3. **No runtime impact** - Comments have no effect on application behavior
+4. **IDE support** - Development tools already track these annotations
---
@@ -140,9 +130,29 @@ These are monitored and will be addressed when fixes become available.
---
+## DevSkim Rule Exclusions Summary
+
+The following rules are excluded in `.github/workflows/devskim.yml`:
+
+| Rule | Name | Reason |
+|------|------|--------|
+| DS162092 | Hardcoded URL | Legitimate API endpoints for research services |
+| DS176209 | Suspicious Comment | Standard TODO/FIXME annotations |
+
+### Review Cadence
+
+These exclusions should be reviewed **quarterly** to ensure:
+- No new security-relevant URLs are being masked
+- Exclusions remain appropriate as the codebase evolves
+- New DevSkim rules are evaluated for applicability
+
+**Last reviewed:** December 2025
+
+---
+
## References
-- [DevSkim Configuration](.github/workflows/devskim.yml)
-- [Gitleaks Configuration](.github/workflows/gitleaks.yml)
+- [DevSkim Configuration](workflows/devskim.yml)
+- [Gitleaks Configuration](workflows/gitleaks.yml)
- [XSS Protection Module](../src/local_deep_research/web/static/js/security/xss-protection.js)
- [SSRF Validator](../src/local_deep_research/security/ssrf_validator.py)