Flag commands that attackers try to inject
Build and deploy / build (push) Successful in 1m32s
Release / image (push) Successful in 1m54s
Build and deploy / deploy (push) Successful in 30s
Release / release (push) Successful in 7s

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:
TomandClaude Sonnet 5.5 committed 2026-11-27 21:22:19 +01:00
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)