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
@@ -1,3 +1,4 @@
|
||||
using Flypaper.Core.Analysis;
|
||||
using Flypaper.Storage.Entities;
|
||||
using Flypaper.Storage.Explanations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
@@ -39,6 +40,10 @@ public sealed class FlypaperDbContext(DbContextOptions<FlypaperDbContext> option
|
||||
trapEvent.HasIndex(e => e.RemoteIp);
|
||||
trapEvent.HasIndex(e => e.CountryCode);
|
||||
trapEvent.HasIndex(e => e.Asn);
|
||||
trapEvent.Property(e => e.Command).HasMaxLength(CommandDetector.MaxCommandLength);
|
||||
trapEvent.Property(e => e.CommandServer).HasMaxLength(CommandDetector.MaxServerLength);
|
||||
trapEvent.HasIndex(e => e.CommandScan);
|
||||
trapEvent.HasIndex(e => e.StartedAt, "IX_TrapEvents_Commands").HasFilter("\"Command\" IS NOT NULL");
|
||||
trapEvent.HasOne(e => e.Request)
|
||||
.WithOne()
|
||||
.HasForeignKey<TrapRequestEntity>(e => e.TrapEventId)
|
||||
|
||||
Reference in new issue
Block a user