Flag commands that attackers try to inject
Path, headers and body of every catch are checked; command and target server are stored, shown defanged in the dashboard and via MCP list_commands. Changelog prepared for 0.11.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b559f83550
commit
c2ecb14b4a
25 files changed
+948
-18
No files matched your search
@@ -20,7 +20,7 @@ public sealed class FlypaperToolsTests : IDisposable
|
||||
{
|
||||
var governor = Substitute.For<IConnectionGovernor>();
|
||||
governor.ActiveConnections.Returns(2);
|
||||
_tools = new FlypaperTools(new CatchQueries(_data.Factory), governor, _active, _enricher, new FixedTimeProvider(McpTestData.Now));
|
||||
_tools = new FlypaperTools(new CatchQueries(_data.Factory), new CommandQueries(_data.Factory), governor, _active, _enricher, new FixedTimeProvider(McpTestData.Now));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -24,7 +24,7 @@ public sealed class McpEndpointTests : IDisposable
|
||||
}
|
||||
|
||||
private static readonly string[] ReadTools =
|
||||
["get_stats", "get_request", "list_active", "list_catches", "longest_catches", "lookup_ip", "top", "list_explanation_rules", "list_unexplained", "test_explanation_rule"];
|
||||
["get_stats", "get_request", "list_commands", "list_active", "list_catches", "longest_catches", "lookup_ip", "top", "list_explanation_rules", "list_unexplained", "test_explanation_rule"];
|
||||
|
||||
[Fact]
|
||||
public async Task Rejects_requests_without_token()
|
||||
@@ -82,6 +82,7 @@ public sealed class McpEndpointTests : IDisposable
|
||||
{ "get_stats", """{"period":"24h"}""" },
|
||||
{ "list_active", """{}""" },
|
||||
{ "get_request", """{"id":1}""" },
|
||||
{ "list_commands", """{"period":"all"}""" },
|
||||
{ "list_catches", """{}""" },
|
||||
{ "list_catches", """{"country":"CN","limit":1}""" },
|
||||
{ "top", """{"dimension":"ips","period":"all"}""" },
|
||||
|
||||
Reference in new issue
Block a user