Skip to content

Commit 690a1ae

Browse files
author
Oracles Technologies LLC
committed
feat: Phase 4 v2.2.0 — browser/web content analysis (Layer 13)
Adds BrowserContentAnalyzer (Layer 13) covering DOM-level injection surfaces invisible to text-only analysis: CSS-hidden content, URL safety (javascript:/data: schemes, homoglyph domains), form manipulation, and inline JS (eval, exfiltration, cookie theft, obfuscation). - pyproject.toml: adds browser extra (beautifulsoup4>=4.12, lxml>=4.9) - versions.py / __init__.py: bump to v2.2.0 (release 2026-05-03) - tests/test_browser_content_analyzer.py: 108 tests across 9 classes including extract_categories(), HTML auto-detection, category propagation to context/scanner layers, and agentic HTML tool routing
1 parent 8273d58 commit 690a1ae

4 files changed

Lines changed: 1005 additions & 3 deletions

File tree

ethicore_guardian/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
# Version information
10-
__version__ = "2.1.0"
10+
__version__ = "2.2.0"
1111
__author__ = "Oracles Technologies LLC"
1212

1313
# Core exports

ethicore_guardian/versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Ethicore Engine™ - Guardian SDK - Version Information
33
"""
44

5-
__version__ = "2.1.0"
5+
__version__ = "2.2.0"
66
__version_info__ = tuple(map(int, __version__.split('.')))
77

88
# Build information
99
__build__ = "stable.1"
10-
__release_date__ = "2026-04-30"
10+
__release_date__ = "2026-05-03"
1111

1212
# Feature flags
1313
FEATURES = {

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ video = [
119119
"ffmpeg-python>=0.2.0",
120120
]
121121

122+
# browser: enables Layer 13 (BrowserContentAnalyzer — DOM-level injection detection).
123+
# Covers CSS-hidden injection, URL injection, form injection, and inline JS analysis.
124+
# lxml is strongly recommended for parse speed; falls back to html.parser when absent.
125+
# Install: pip install "ethicore-engine-guardian[browser]"
126+
browser = [
127+
"beautifulsoup4>=4.12.0",
128+
"lxml>=4.9.0",
129+
]
130+
122131
# ml: enables full transformer-based ML inference in MLInferenceEngine.
123132
# Without these packages the engine runs its built-in heuristic fallback,
124133
# which is still effective but less accurate than a fine-tuned classifier.
@@ -143,6 +152,8 @@ all = [
143152
"scipy>=1.7.0",
144153
"imagehash>=4.3.1",
145154
"opencv-python-headless>=4.8.0",
155+
"beautifulsoup4>=4.12.0",
156+
"lxml>=4.9.0",
146157
]
147158

148159
[project.urls]

0 commit comments

Comments
 (0)