spring-boot-event-driven-patterns

Warn

Audited by Gen Agent Trust Hub on Jun 22, 2026

Risk Level: MEDIUMREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: The configuration examples in 'references/configuration.md' and 'references/examples.md' recommend setting 'spring.json.trusted.packages' to '*'. This configuration allows the Spring Kafka deserializer to attempt to instantiate any class on the application's classpath based on incoming message headers. This is a well-known security risk that facilitates insecure deserialization attacks, potentially leading to remote code execution if an attacker can send messages to the Kafka topics consumed by the application.
  • [PROMPT_INJECTION]: The skill provides patterns for ingesting untrusted data from external Kafka topics into core business logic without including sanitization or boundary markers.
  • Ingestion points: Kafka consumer listeners in 'references/event-handling.md' and functional stream consumers in 'references/examples.md'.
  • Boundary markers: The implementation patterns do not include delimiters or specific instructions for the agent to ignore or isolate instructions embedded within the event payloads.
  • Capability inventory: Processed event data is used to drive sensitive business operations such as 'inventoryService.reserve' and 'paymentService.charge'.
  • Sanitization: The provided patterns lack input validation, schema enforcement, or sanitization logic to handle potentially malicious event content.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jun 22, 2026, 11:54 AM