diff --git a/.gemini/settings.json b/.gemini/settings.json index ef9233f3807..93def93e464 100644 --- a/.gemini/settings.json +++ b/.gemini/settings.json @@ -5,4 +5,4 @@ "type": "sse" } } -} \ No newline at end of file +} diff --git a/web/mcp_server.py b/web/mcp_server.py index af67407bf0f..2d084d43dd1 100644 --- a/web/mcp_server.py +++ b/web/mcp_server.py @@ -567,7 +567,7 @@ async def verify_auth(token: str = "") -> str: parser = argparse.ArgumentParser(description="CAPE MCP Server") parser.add_argument("--transport", choices=["stdio", "sse", "streamable-http", "http"], default=os.environ.get("CAPE_MCP_TRANSPORT", "stdio"), help="Transport protocol (default: stdio)") parser.add_argument("--host", default=os.environ.get("CAPE_MCP_HOST", "127.0.0.1"), help="Host to bind for HTTP/SSE (default: 127.0.0.1)") - parser.add_argument("--port", type=int, default=int(os.environ.get("CAPE_MCP_PORT", "8000")), help="Port to bind for HTTP/SSE (default: 8000)") + parser.add_argument("--port", type=int, default=int(os.environ.get("CAPE_MCP_PORT", "9004")), help="Port to bind for HTTP/SSE (default: 9004)") args = parser.parse_args() if args.transport in ["sse", "streamable-http", "http"]: diff --git a/web/templates/analysis/search.html b/web/templates/analysis/search.html index e42e6ae1a45..791ad5eb447 100644 --- a/web/templates/analysis/search.html +++ b/web/templates/analysis/search.html @@ -23,7 +23,8 @@
Search Help<

ElasticSearch queries do not use a prefix. e.g., *windows.* matches 'time.windows.com'.

-

For MD5, SHA1, SHA256, etc., no prefix is needed (matches any file generated by analysis).

+

For MD5, SHA1, SHA256, etc., no prefix is needed (matches any file generated by analysis, including dropped/extracted files).

+

To search for the initial submitted file specifically, use target_sha256: prefix.

By default, searches are exact matches. Use regex characters (e.g., ^ $ | ? * + ( ) [ ] { }) to force a regex search.

@@ -117,6 +118,9 @@
Search Help<

Results for term: {{term}}

+ {% if term_only in 'md5,sha1,sha256' %} +

Note: Hash searches match all generated files inside analysis. Use target_sha256: for initial file matches.

+ {% endif %} {% if settings.ZIPPED_DOWNLOAD_ALL and term_only in 'capetype,capeyara' %} Download All Matches {% endif %}