Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

1.3 KB
Raw Blame
/**
 * Shared injection-phrase catalog for the ruflo security scanners.
 *
 * Both `mcp-composition-inspector` (#2783 static tool scan) and
 * `channel-guard` (#2783 companion runtime message scan) consume this
 * catalog so a new phrase added here strengthens both surfaces at once.
 *
 * Phrases are lowercase substrings matched case-insensitively. Keep the
 * list conservative — false-positive tolerance is low at the runtime
 * message-scan boundary because a hit blocks / quarantines a message.
 */

export const INJECTION_PHRASES = [
  'ignore previous instructions',
  'ignore all prior',
  'disregard the above',
  'you are now',
  'act as',
  'system prompt',
  'system:',
  'assistant:',
  'delete all',
  'rm -rf',
  'exfiltrate',
  'send me the',
  'reveal your',
  'reveal the',
  'override',
  'jailbreak',
] as const;

/**
 * Injection-adjacent keywords that raise a fragment's suspicion score
 * (used by the composition inspector to weight cross-tool shared
 * fragments — a fragment matching one of these AND appearing across
 * two unrelated tools is a strong Shamir-split signal).
 */
export const TRUSTED_INJECTION_ADJACENT_KEYWORDS = [
  'instructions', 'prompt', 'system', 'assistant', 'exfiltrate',
  'reveal', 'override', 'jailbreak', 'ignore', 'disregard',
] as const;