fullcourtdefense 2.0.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +212 -53
- package/dist/adapters.d.ts +11 -0
- package/dist/adapters.js +16 -0
- package/dist/anthropic.d.ts +32 -0
- package/dist/anthropic.js +65 -0
- package/dist/argsBounds.d.ts +38 -0
- package/dist/argsBounds.js +84 -0
- package/dist/autoInstrument.d.ts +24 -7
- package/dist/autoInstrument.js +148 -23
- package/dist/circuitBreaker.d.ts +17 -0
- package/dist/circuitBreaker.js +39 -0
- package/dist/cliMoved.d.ts +4 -0
- package/dist/cliMoved.js +20 -0
- package/dist/client.d.ts +136 -1
- package/dist/client.js +812 -84
- package/dist/errors.d.ts +73 -0
- package/dist/errors.js +110 -0
- package/dist/failMode.d.ts +96 -0
- package/dist/failMode.js +180 -0
- package/dist/identity.d.ts +32 -0
- package/dist/identity.js +120 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +9 -1
- package/dist/lambda.d.ts +101 -0
- package/dist/lambda.js +357 -0
- package/dist/localGate.d.ts +44 -0
- package/dist/localGate.js +114 -0
- package/dist/protect.d.ts +42 -0
- package/dist/protect.js +205 -1
- package/dist/recordSpool.d.ts +17 -0
- package/dist/recordSpool.js +137 -0
- package/dist/types.d.ts +120 -2
- package/lambda.js +6 -0
- package/package.json +19 -21
- package/dist/cli/actionPolicyEngine.d.ts +0 -146
- package/dist/cli/actionPolicyEngine.js +0 -754
- package/dist/cli/api.d.ts +0 -116
- package/dist/cli/api.js +0 -65
- package/dist/cli/appDetection.d.ts +0 -8
- package/dist/cli/appDetection.js +0 -107
- package/dist/cli/attack-corpus/context_escape/context-escape-newline.yaml +0 -23
- package/dist/cli/attack-corpus/context_escape/context-escape-unicode.yaml +0 -14
- package/dist/cli/attack-corpus/context_escape/delimiter-json.yaml +0 -14
- package/dist/cli/attack-corpus/context_escape/delimiter-markdown.yaml +0 -22
- package/dist/cli/attack-corpus/context_escape/delimiter-xml.yaml +0 -19
- package/dist/cli/attack-corpus/context_escape/html-injection.yaml +0 -14
- package/dist/cli/attack-corpus/context_escape/javascript-injection.yaml +0 -13
- package/dist/cli/attack-corpus/data_extraction/adv26-adversarial-function-hallucination.yaml +0 -20
- package/dist/cli/attack-corpus/data_extraction/adv26-cot-hijack-debug-trace.yaml +0 -20
- package/dist/cli/attack-corpus/data_extraction/adv26-cot-hijack-verification.yaml +0 -18
- package/dist/cli/attack-corpus/data_extraction/adv26-crossmodal-diff.yaml +0 -22
- package/dist/cli/attack-corpus/data_extraction/adv26-crossmodal-graphql.yaml +0 -34
- package/dist/cli/attack-corpus/data_extraction/adv26-crossmodal-regex.yaml +0 -19
- package/dist/cli/attack-corpus/data_extraction/adv26-crossmodal-sql-prose.yaml +0 -18
- package/dist/cli/attack-corpus/data_extraction/adv26-meta-confidence-calibration.yaml +0 -21
- package/dist/cli/attack-corpus/data_extraction/adv26-meta-instruction-count.yaml +0 -18
- package/dist/cli/attack-corpus/data_extraction/adv26-meta-output-format.yaml +0 -16
- package/dist/cli/attack-corpus/data_extraction/adv26-meta-summarize-yourself.yaml +0 -19
- package/dist/cli/attack-corpus/data_extraction/adv26-semantic-decomp-definition.yaml +0 -15
- package/dist/cli/attack-corpus/data_extraction/adv26-semantic-decomp-fill-blank.yaml +0 -19
- package/dist/cli/attack-corpus/data_extraction/adv26-semantic-decomp-negation.yaml +0 -14
- package/dist/cli/attack-corpus/data_extraction/cloud-provider-discovery.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/config-file-request.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/cve-2025-echoleak.yaml +0 -17
- package/dist/cli/attack-corpus/data_extraction/data-api-key.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-architecture.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-conversation-history.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/data-credit-card.yaml +0 -15
- package/dist/cli/attack-corpus/data_extraction/data-customer-list.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-database.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-employees.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-export.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-inference-v1.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/data-inference-v2.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/data-logs.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/data-model-info.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/data-password.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-ssn.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/data-training.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/dependency-enum.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/dialogflow-fulfillment-leak.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/dialogflow-intent-leak.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/error-induced-leak.yaml +0 -17
- package/dist/cli/attack-corpus/data_extraction/error-message-leak.yaml +0 -12
- package/dist/cli/attack-corpus/data_extraction/infra-fingerprint.yaml +0 -16
- package/dist/cli/attack-corpus/data_extraction/make-scenario-leak.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/n8n-execution-data.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/n8n-node-enumeration.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/n8n-workflow-disclosure.yaml +0 -15
- package/dist/cli/attack-corpus/data_extraction/prompt-extraction-v1.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/prompt-extraction-v2.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/prompt-extraction-v3.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/prompt-leak-completion.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/prompt-leak-indirect.yaml +0 -10
- package/dist/cli/attack-corpus/data_extraction/rasa-domain-leak.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/system-prompt-section.yaml +0 -14
- package/dist/cli/attack-corpus/data_extraction/tech-architecture.yaml +0 -16
- package/dist/cli/attack-corpus/data_extraction/tool-api-key-exfil.yaml +0 -15
- package/dist/cli/attack-corpus/data_extraction/tool-email-exfil.yaml +0 -14
- package/dist/cli/attack-corpus/data_extraction/tool-env-extraction.yaml +0 -14
- package/dist/cli/attack-corpus/data_extraction/tool-file-read.yaml +0 -16
- package/dist/cli/attack-corpus/data_extraction/tool-nosql-injection.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/tool-payment-manipulation.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/tool-price-manipulation.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/tool-session-hijack.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/tool-sql-injection.yaml +0 -13
- package/dist/cli/attack-corpus/data_extraction/tool-webhook-hijack.yaml +0 -13
- package/dist/cli/attack-corpus/data_extraction/version-fingerprint.yaml +0 -16
- package/dist/cli/attack-corpus/data_extraction/webhook-secret-extraction.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/webhook-url-enum.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/workflow-instance-id.yaml +0 -11
- package/dist/cli/attack-corpus/data_extraction/workflow-state-leak.yaml +0 -16
- package/dist/cli/attack-corpus/data_extraction/zapier-zap-leak.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_attack/adv26-adversarial-token-confusion.yaml +0 -13
- package/dist/cli/attack-corpus/encoding_attack/base64-decode-request.yaml +0 -14
- package/dist/cli/attack-corpus/encoding_attack/base64-injection-v1.yaml +0 -14
- package/dist/cli/attack-corpus/encoding_attack/flip-attack-v1.yaml +0 -14
- package/dist/cli/attack-corpus/encoding_attack/flip-attack-v2.yaml +0 -14
- package/dist/cli/attack-corpus/encoding_attack/token-smuggling.yaml +0 -10
- package/dist/cli/attack-corpus/encoding_attack/unicode-homoglyph.yaml +0 -15
- package/dist/cli/attack-corpus/encoding_attack/unicode-invisible.yaml +0 -15
- package/dist/cli/attack-corpus/encoding_attack/unicode-rtl.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_bypass/adv26-compound-encoding-chain.yaml +0 -19
- package/dist/cli/attack-corpus/encoding_bypass/adv26-smuggle-acrostic.yaml +0 -26
- package/dist/cli/attack-corpus/encoding_bypass/adv26-smuggle-ascii-art.yaml +0 -25
- package/dist/cli/attack-corpus/encoding_bypass/adv26-smuggle-emoji-cipher.yaml +0 -22
- package/dist/cli/attack-corpus/encoding_bypass/adv26-smuggle-first-word.yaml +0 -15
- package/dist/cli/attack-corpus/encoding_bypass/adv26-smuggle-pig-latin.yaml +0 -15
- package/dist/cli/attack-corpus/encoding_bypass/encoding-base64-v1.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_bypass/encoding-base64-v2.yaml +0 -15
- package/dist/cli/attack-corpus/encoding_bypass/encoding-hex-v1.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_bypass/encoding-leetspeak-v1.yaml +0 -10
- package/dist/cli/attack-corpus/encoding_bypass/encoding-morse-v1.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_bypass/encoding-reverse-v1.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_bypass/encoding-rot13-v1.yaml +0 -11
- package/dist/cli/attack-corpus/encoding_bypass/unicode-tag-injection.yaml +0 -10
- package/dist/cli/attack-corpus/encoding_bypass/zero-width-injection.yaml +0 -10
- package/dist/cli/attack-corpus/exploitation/exploit-command-injection.yaml +0 -12
- package/dist/cli/attack-corpus/exploitation/exploit-path-traversal.yaml +0 -12
- package/dist/cli/attack-corpus/exploitation/exploit-sql-injection.yaml +0 -12
- package/dist/cli/attack-corpus/exploitation/exploit-sql-union.yaml +0 -12
- package/dist/cli/attack-corpus/exploitation/exploit-template-injection.yaml +0 -12
- package/dist/cli/attack-corpus/glitch_token/glitch-davidjl.yaml +0 -10
- package/dist/cli/attack-corpus/glitch_token/glitch-solidgoldmagikarp.yaml +0 -10
- package/dist/cli/attack-corpus/harmful_content/dna-deepfake-guidance.yaml +0 -14
- package/dist/cli/attack-corpus/harmful_content/dna-discrimination.yaml +0 -14
- package/dist/cli/attack-corpus/harmful_content/dna-information-hazard.yaml +0 -14
- package/dist/cli/attack-corpus/harmful_content/dna-malicious-use-phishing.yaml +0 -14
- package/dist/cli/attack-corpus/harmful_content/dna-malware-assistance.yaml +0 -16
- package/dist/cli/attack-corpus/harmful_content/dna-misinformation-health.yaml +0 -17
- package/dist/cli/attack-corpus/jailbreak/adv26-adversarial-few-shot-poison.yaml +0 -27
- package/dist/cli/attack-corpus/jailbreak/adv26-adversarial-prompt-refraction.yaml +0 -19
- package/dist/cli/attack-corpus/jailbreak/adv26-adversarial-response-prefill.yaml +0 -25
- package/dist/cli/attack-corpus/jailbreak/adv26-compound-authority-technical.yaml +0 -24
- package/dist/cli/attack-corpus/jailbreak/adv26-context-error-recovery.yaml +0 -19
- package/dist/cli/attack-corpus/jailbreak/adv26-context-token-budget.yaml +0 -19
- package/dist/cli/attack-corpus/jailbreak/adv26-cot-hijack-proof.yaml +0 -20
- package/dist/cli/attack-corpus/jailbreak/adv26-cot-hijack-reasoning.yaml +0 -19
- package/dist/cli/attack-corpus/jailbreak/adv26-meta-alignment-test.yaml +0 -22
- package/dist/cli/attack-corpus/jailbreak/adv26-persona-memory.yaml +0 -17
- package/dist/cli/attack-corpus/jailbreak/adv26-persona-mirror.yaml +0 -16
- package/dist/cli/attack-corpus/jailbreak/adv26-persona-split.yaml +0 -17
- package/dist/cli/attack-corpus/jailbreak/adv26-persona-timetravel.yaml +0 -15
- package/dist/cli/attack-corpus/jailbreak/dan-anti.yaml +0 -16
- package/dist/cli/attack-corpus/jailbreak/dan-dude.yaml +0 -16
- package/dist/cli/attack-corpus/jailbreak/dan-jailbreak-v1.yaml +0 -21
- package/dist/cli/attack-corpus/jailbreak/dan-jailbreak-v2.yaml +0 -19
- package/dist/cli/attack-corpus/jailbreak/dan-stan.yaml +0 -16
- package/dist/cli/attack-corpus/jailbreak/debug-mode-activation.yaml +0 -20
- package/dist/cli/attack-corpus/jailbreak/iris-self-jailbreak.yaml +0 -23
- package/dist/cli/attack-corpus/jailbreak/logic-trap-moral.yaml +0 -20
- package/dist/cli/attack-corpus/jailbreak/logic-trap-paradox.yaml +0 -17
- package/dist/cli/attack-corpus/jailbreak/policy-puppetry-json.yaml +0 -25
- package/dist/cli/attack-corpus/jailbreak/policy-puppetry-xml.yaml +0 -20
- package/dist/cli/attack-corpus/jailbreak/simulation-mode.yaml +0 -19
- package/dist/cli/attack-corpus/latent_injection/adv26-compound-trojan-doc.yaml +0 -26
- package/dist/cli/attack-corpus/latent_injection/latent-code-comment-injection.yaml +0 -18
- package/dist/cli/attack-corpus/latent_injection/latent-email-injection.yaml +0 -23
- package/dist/cli/attack-corpus/latent_injection/latent-report-injection.yaml +0 -21
- package/dist/cli/attack-corpus/latent_injection/latent-resume-injection.yaml +0 -23
- package/dist/cli/attack-corpus/latent_injection/latent-whois-snippet.yaml +0 -19
- package/dist/cli/attack-corpus/multi-turn/multiturn-context-confusion.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-emergency.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-employee-impersonation.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-example-injection.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-jailbreak-buildup.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-memory-manipulation.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-privilege-escalation.yaml +0 -23
- package/dist/cli/attack-corpus/multi-turn/multiturn-split-request.yaml +0 -20
- package/dist/cli/attack-corpus/multi-turn/multiturn-trust-building.yaml +0 -19
- package/dist/cli/attack-corpus/multilingual/multilingual-mixed.yaml +0 -10
- package/dist/cli/attack-corpus/multilingual/multilingual-spanish.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/adv26-context-fake-history.yaml +0 -16
- package/dist/cli/attack-corpus/prompt_injection/adv26-context-sandwich.yaml +0 -18
- package/dist/cli/attack-corpus/prompt_injection/adv26-context-system-message.yaml +0 -19
- package/dist/cli/attack-corpus/prompt_injection/adv26-crossmodal-yaml.yaml +0 -30
- package/dist/cli/attack-corpus/prompt_injection/adv26-semantic-decomp-stepwise.yaml +0 -16
- package/dist/cli/attack-corpus/prompt_injection/context-json-injection.yaml +0 -15
- package/dist/cli/attack-corpus/prompt_injection/context-markdown-injection.yaml +0 -26
- package/dist/cli/attack-corpus/prompt_injection/context-xml-injection.yaml +0 -19
- package/dist/cli/attack-corpus/prompt_injection/continuation-code.yaml +0 -16
- package/dist/cli/attack-corpus/prompt_injection/continuation-story.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/cve-2025-copilot.yaml +0 -17
- package/dist/cli/attack-corpus/prompt_injection/ignore-instructions-v1.yaml +0 -14
- package/dist/cli/attack-corpus/prompt_injection/ignore-instructions-v2.yaml +0 -16
- package/dist/cli/attack-corpus/prompt_injection/ignore-instructions-v3.yaml +0 -18
- package/dist/cli/attack-corpus/prompt_injection/indirect-file.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/indirect-url.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/instruction-hierarchy.yaml +0 -20
- package/dist/cli/attack-corpus/prompt_injection/multilang-chain.yaml +0 -16
- package/dist/cli/attack-corpus/prompt_injection/multilang-chinese.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/multilang-japanese.yaml +0 -11
- package/dist/cli/attack-corpus/prompt_injection/multilang-mixed.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/multilang-polish.yaml +0 -11
- package/dist/cli/attack-corpus/prompt_injection/multilang-spanish.yaml +0 -14
- package/dist/cli/attack-corpus/prompt_injection/nested-instruction.yaml +0 -22
- package/dist/cli/attack-corpus/prompt_injection/template-injection-v1.yaml +0 -14
- package/dist/cli/attack-corpus/prompt_injection/template-injection-v2.yaml +0 -10
- package/dist/cli/attack-corpus/prompt_injection/tool-file-write.yaml +0 -13
- package/dist/cli/attack-corpus/prompt_injection/tool-function-override.yaml +0 -13
- package/dist/cli/attack-corpus/prompt_injection/tool-log-injection.yaml +0 -13
- package/dist/cli/attack-corpus/prompt_injection/tool-orchestration-abuse.yaml +0 -14
- package/dist/cli/attack-corpus/prompt_injection/tool-session-fixation.yaml +0 -12
- package/dist/cli/attack-corpus/role_manipulation/role-reversal-v1.yaml +0 -20
- package/dist/cli/attack-corpus/role_manipulation/role-reversal-v2.yaml +0 -16
- package/dist/cli/attack-corpus/social_engineering/adv26-compound-compliance-trap.yaml +0 -23
- package/dist/cli/attack-corpus/social_engineering/adv26-compound-emotional-technical.yaml +0 -18
- package/dist/cli/attack-corpus/social_engineering/adv26-cot-hijack-socratic.yaml +0 -19
- package/dist/cli/attack-corpus/social_engineering/adv26-persona-dying.yaml +0 -15
- package/dist/cli/attack-corpus/social_engineering/adv26-reward-consensus.yaml +0 -17
- package/dist/cli/attack-corpus/social_engineering/adv26-reward-gradient.yaml +0 -21
- package/dist/cli/attack-corpus/social_engineering/adv26-reward-helpful-framing.yaml +0 -17
- package/dist/cli/attack-corpus/social_engineering/adv26-reward-praise-prime.yaml +0 -13
- package/dist/cli/attack-corpus/social_engineering/adv26-reward-punishment.yaml +0 -13
- package/dist/cli/attack-corpus/social_engineering/adv26-semantic-decomp-analogy.yaml +0 -16
- package/dist/cli/attack-corpus/social_engineering/emotional-authority.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/emotional-urgency.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/grandma-bedtime-v1.yaml +0 -21
- package/dist/cli/attack-corpus/social_engineering/grandma-bedtime-v2.yaml +0 -17
- package/dist/cli/attack-corpus/social_engineering/grandma-colorful-words.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/hypothetical-fiction.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/hypothetical-research.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/hypothetical-training.yaml +0 -13
- package/dist/cli/attack-corpus/social_engineering/hypothetical-v1.yaml +0 -17
- package/dist/cli/attack-corpus/social_engineering/hypothetical-v2.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/hypothetical-v3.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/meta-explanation.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/phrasing-comparative.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/phrasing-educational.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/phrasing-future-tense.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/phrasing-past-tense.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/phrasing-third-person.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/privilege-escalation-v1.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/privilege-escalation-v2.yaml +0 -14
- package/dist/cli/attack-corpus/social_engineering/recursive-explanation.yaml +0 -15
- package/dist/cli/attack-corpus/social_engineering/smuggle-academic-paper.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/smuggle-function-masking.yaml +0 -19
- package/dist/cli/attack-corpus/social_engineering/smuggle-hypothetical-response.yaml +0 -10
- package/dist/cli/attack-corpus/social_engineering/smuggle-roleplay-interviewer.yaml +0 -12
- package/dist/cli/attack-corpus/social_engineering/smuggle-translation-mask.yaml +0 -12
- package/dist/cli/attack-corpus/social_engineering/tool-admin-impersonation.yaml +0 -16
- package/dist/cli/attack-corpus/social_engineering/tool-sudo-mode.yaml +0 -17
- package/dist/cli/attack-corpus/stress_test/context-window-overflow.yaml +0 -17
- package/dist/cli/attack-corpus/stress_test/extreme-payload-50k.yaml +0 -13
- package/dist/cli/attack-corpus/stress_test/large-payload-10k.yaml +0 -12
- package/dist/cli/attack-corpus/stress_test/large-payload-5k.yaml +0 -12
- package/dist/cli/attack-corpus/stress_test/long-prompt-exhaustion.yaml +0 -19
- package/dist/cli/attack-corpus/stress_test/stress-large-payload.yaml +0 -16
- package/dist/cli/attack-corpus/stress_test/stress-repetition.yaml +0 -14
- package/dist/cli/backupManifest.d.ts +0 -7
- package/dist/cli/backupManifest.js +0 -108
- package/dist/cli/commands/agentCi.d.ts +0 -15
- package/dist/cli/commands/agentCi.js +0 -418
- package/dist/cli/commands/approve.d.ts +0 -17
- package/dist/cli/commands/approve.js +0 -40
- package/dist/cli/commands/autoProtect.d.ts +0 -10
- package/dist/cli/commands/autoProtect.js +0 -154
- package/dist/cli/commands/ciProtect.d.ts +0 -44
- package/dist/cli/commands/ciProtect.js +0 -123
- package/dist/cli/commands/clipboardScan.d.ts +0 -2
- package/dist/cli/commands/clipboardScan.js +0 -51
- package/dist/cli/commands/cmdGuard.d.ts +0 -41
- package/dist/cli/commands/cmdGuard.js +0 -411
- package/dist/cli/commands/configure.d.ts +0 -10
- package/dist/cli/commands/configure.js +0 -131
- package/dist/cli/commands/credits.d.ts +0 -6
- package/dist/cli/commands/credits.js +0 -21
- package/dist/cli/commands/daemon.d.ts +0 -120
- package/dist/cli/commands/daemon.js +0 -2449
- package/dist/cli/commands/demoActions.d.ts +0 -117
- package/dist/cli/commands/demoActions.js +0 -450
- package/dist/cli/commands/desktopChatGuard.d.ts +0 -54
- package/dist/cli/commands/desktopChatGuard.js +0 -629
- package/dist/cli/commands/deterministicGuard.d.ts +0 -102
- package/dist/cli/commands/deterministicGuard.js +0 -1281
- package/dist/cli/commands/discover.d.ts +0 -92
- package/dist/cli/commands/discover.js +0 -1125
- package/dist/cli/commands/discoverAgentFiles.d.ts +0 -36
- package/dist/cli/commands/discoverAgentFiles.js +0 -345
- package/dist/cli/commands/discoverBlastRadius.d.ts +0 -36
- package/dist/cli/commands/discoverBlastRadius.js +0 -201
- package/dist/cli/commands/discoverPaths.d.ts +0 -83
- package/dist/cli/commands/discoverPaths.js +0 -537
- package/dist/cli/commands/discoverProxy.d.ts +0 -46
- package/dist/cli/commands/discoverProxy.js +0 -302
- package/dist/cli/commands/discoverSchedule.d.ts +0 -12
- package/dist/cli/commands/discoverSchedule.js +0 -209
- package/dist/cli/commands/discoverSecrets.d.ts +0 -41
- package/dist/cli/commands/discoverSecrets.js +0 -608
- package/dist/cli/commands/doctor.d.ts +0 -11
- package/dist/cli/commands/doctor.js +0 -297
- package/dist/cli/commands/ephemeralStack.d.ts +0 -82
- package/dist/cli/commands/ephemeralStack.js +0 -185
- package/dist/cli/commands/flushSpool.d.ts +0 -13
- package/dist/cli/commands/flushSpool.js +0 -28
- package/dist/cli/commands/hook.d.ts +0 -141
- package/dist/cli/commands/hook.js +0 -1679
- package/dist/cli/commands/init.d.ts +0 -1
- package/dist/cli/commands/init.js +0 -95
- package/dist/cli/commands/installAll.d.ts +0 -22
- package/dist/cli/commands/installAll.js +0 -186
- package/dist/cli/commands/installClaudeHook.d.ts +0 -39
- package/dist/cli/commands/installClaudeHook.js +0 -336
- package/dist/cli/commands/installCursorHook.d.ts +0 -33
- package/dist/cli/commands/installCursorHook.js +0 -380
- package/dist/cli/commands/knownMcpServers.d.ts +0 -8
- package/dist/cli/commands/knownMcpServers.js +0 -113
- package/dist/cli/commands/local-scan.d.ts +0 -44
- package/dist/cli/commands/local-scan.js +0 -3003
- package/dist/cli/commands/login.d.ts +0 -17
- package/dist/cli/commands/login.js +0 -75
- package/dist/cli/commands/mcpGateway.d.ts +0 -119
- package/dist/cli/commands/mcpGateway.js +0 -2987
- package/dist/cli/commands/onboard.d.ts +0 -41
- package/dist/cli/commands/onboard.js +0 -713
- package/dist/cli/commands/onboardingJournal.d.ts +0 -20
- package/dist/cli/commands/onboardingJournal.js +0 -104
- package/dist/cli/commands/posixShellGuard.d.ts +0 -26
- package/dist/cli/commands/posixShellGuard.js +0 -410
- package/dist/cli/commands/protectionRepair.d.ts +0 -14
- package/dist/cli/commands/protectionRepair.js +0 -24
- package/dist/cli/commands/restartNotice.d.ts +0 -2
- package/dist/cli/commands/restartNotice.js +0 -14
- package/dist/cli/commands/scan.d.ts +0 -48
- package/dist/cli/commands/scan.js +0 -134
- package/dist/cli/commands/shellGuard.d.ts +0 -96
- package/dist/cli/commands/shellGuard.js +0 -880
- package/dist/cli/commands/taintLedger.d.ts +0 -108
- package/dist/cli/commands/taintLedger.js +0 -587
- package/dist/cli/commands/uninstallAll.d.ts +0 -67
- package/dist/cli/commands/uninstallAll.js +0 -454
- package/dist/cli/commands/verifyRemoved.d.ts +0 -24
- package/dist/cli/commands/verifyRemoved.js +0 -294
- package/dist/cli/commands/watchdog.d.ts +0 -28
- package/dist/cli/commands/watchdog.js +0 -158
- package/dist/cli/commands/windowsAudit.d.ts +0 -92
- package/dist/cli/commands/windowsAudit.js +0 -479
- package/dist/cli/commands/workloadProtect.d.ts +0 -61
- package/dist/cli/commands/workloadProtect.js +0 -173
- package/dist/cli/config.d.ts +0 -130
- package/dist/cli/config.js +0 -583
- package/dist/cli/credentialStore.d.ts +0 -19
- package/dist/cli/credentialStore.js +0 -136
- package/dist/cli/daemonForensics.d.ts +0 -178
- package/dist/cli/daemonForensics.js +0 -318
- package/dist/cli/describeError.d.ts +0 -17
- package/dist/cli/describeError.js +0 -74
- package/dist/cli/devConfirm.d.ts +0 -78
- package/dist/cli/devConfirm.js +0 -241
- package/dist/cli/discoveryMarker.d.ts +0 -9
- package/dist/cli/discoveryMarker.js +0 -81
- package/dist/cli/distress.d.ts +0 -124
- package/dist/cli/distress.js +0 -245
- package/dist/cli/envDiagnostics.d.ts +0 -53
- package/dist/cli/envDiagnostics.js +0 -114
- package/dist/cli/honeypot.d.ts +0 -45
- package/dist/cli/honeypot.js +0 -190
- package/dist/cli/hookIo.d.ts +0 -43
- package/dist/cli/hookIo.js +0 -189
- package/dist/cli/hookSlim.d.ts +0 -32
- package/dist/cli/hookSlim.js +0 -142
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js +0 -1141
- package/dist/cli/integrity.d.ts +0 -23
- package/dist/cli/integrity.js +0 -159
- package/dist/cli/localSafetySnapshot.d.ts +0 -49
- package/dist/cli/localSafetySnapshot.js +0 -254
- package/dist/cli/machineActionVerify.d.ts +0 -58
- package/dist/cli/machineActionVerify.js +0 -160
- package/dist/cli/machineIdentity.d.ts +0 -23
- package/dist/cli/machineIdentity.js +0 -235
- package/dist/cli/machineKeyFile.d.ts +0 -25
- package/dist/cli/machineKeyFile.js +0 -226
- package/dist/cli/notify.d.ts +0 -30
- package/dist/cli/notify.js +0 -139
- package/dist/cli/output.d.ts +0 -11
- package/dist/cli/output.js +0 -292
- package/dist/cli/perfSnapshot.d.ts +0 -113
- package/dist/cli/perfSnapshot.js +0 -274
- package/dist/cli/policyGateHealth.d.ts +0 -45
- package/dist/cli/policyGateHealth.js +0 -135
- package/dist/cli/pollLoop.d.ts +0 -78
- package/dist/cli/pollLoop.js +0 -160
- package/dist/cli/runtimeConfig.d.ts +0 -183
- package/dist/cli/runtimeConfig.js +0 -474
- package/dist/cli/securityAgents.d.ts +0 -26
- package/dist/cli/securityAgents.js +0 -65
- package/dist/cli/selfTest.d.ts +0 -48
- package/dist/cli/selfTest.js +0 -212
- package/dist/cli/selfUpdate.d.ts +0 -101
- package/dist/cli/selfUpdate.js +0 -515
- package/dist/cli/sessionLimits.d.ts +0 -76
- package/dist/cli/sessionLimits.js +0 -330
- package/dist/cli/telemetry.d.ts +0 -134
- package/dist/cli/telemetry.js +0 -433
- package/dist/cli/verdictIpc.d.ts +0 -30
- package/dist/cli/verdictIpc.js +0 -244
- package/dist/cli/verdictIpcClient.d.ts +0 -103
- package/dist/cli/verdictIpcClient.js +0 -251
- package/dist/cli/version.json +0 -3
- package/dist/cli/windowsTaskState.d.ts +0 -40
- package/dist/cli/windowsTaskState.js +0 -43
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BotGuardConfig } from '../config';
|
|
2
|
-
export interface LoginArgs {
|
|
3
|
-
/** Reusable, non-expiring fleet enrollment token (or FCD_ENROLL_TOKEN env). */
|
|
4
|
-
token?: string;
|
|
5
|
-
apiUrl?: string;
|
|
6
|
-
/** Admin-facing friendly machine name shown next to the hostname in the console. */
|
|
7
|
-
nickname?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* `fullcourtdefense login` — zero-paste machine enrollment.
|
|
11
|
-
*
|
|
12
|
-
* The machine authenticates to the org with a reusable fleet token (distributed
|
|
13
|
-
* by IT/MDM), self-enrolls under its stable machine id, and receives a dedicated
|
|
14
|
-
* per-machine Shield (enforcing by default). Credentials are written to
|
|
15
|
-
* ~/.fullcourtdefense.yml so no manual copy/paste of Shield IDs/keys is needed.
|
|
16
|
-
*/
|
|
17
|
-
export declare function loginCommand(args: LoginArgs, config: BotGuardConfig): Promise<void>;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loginCommand = loginCommand;
|
|
4
|
-
const config_1 = require("../config");
|
|
5
|
-
const machineIdentity_1 = require("../machineIdentity");
|
|
6
|
-
const runtimeConfig_1 = require("../runtimeConfig");
|
|
7
|
-
/**
|
|
8
|
-
* `fullcourtdefense login` — zero-paste machine enrollment.
|
|
9
|
-
*
|
|
10
|
-
* The machine authenticates to the org with a reusable fleet token (distributed
|
|
11
|
-
* by IT/MDM), self-enrolls under its stable machine id, and receives a dedicated
|
|
12
|
-
* per-machine Shield (enforcing by default). Credentials are written to
|
|
13
|
-
* ~/.fullcourtdefense.yml so no manual copy/paste of Shield IDs/keys is needed.
|
|
14
|
-
*/
|
|
15
|
-
async function loginCommand(args, config) {
|
|
16
|
-
const creds = (0, config_1.resolveCliCredentials)(config, { apiUrl: args.apiUrl });
|
|
17
|
-
const apiUrl = creds.apiUrl;
|
|
18
|
-
const token = (args.token || process.env.FCD_ENROLL_TOKEN || '').trim();
|
|
19
|
-
if (!token) {
|
|
20
|
-
throw new Error('A fleet enrollment token is required. Pass --token <token> or set FCD_ENROLL_TOKEN.\n'
|
|
21
|
-
+ 'An org admin issues one from the AI Fleet console (Settings → Fleet enrollment token).');
|
|
22
|
-
}
|
|
23
|
-
const identity = (0, machineIdentity_1.getMachineIdentity)();
|
|
24
|
-
const shieldName = (0, machineIdentity_1.suggestedShieldName)(identity);
|
|
25
|
-
const nickname = (args.nickname || process.env.FCD_MACHINE_NICKNAME || '').trim().slice(0, 80) || undefined;
|
|
26
|
-
console.log('\x1b[1mEnrolling this machine…\x1b[0m');
|
|
27
|
-
console.log(` Device: ${identity.developerName}`);
|
|
28
|
-
if (nickname)
|
|
29
|
-
console.log(` Name: ${nickname}`);
|
|
30
|
-
console.log(` OS: ${identity.osFriendly}`);
|
|
31
|
-
console.log(` Shield: ${shieldName}`);
|
|
32
|
-
const resp = await fetch(`${apiUrl}/api/cli/enroll`, {
|
|
33
|
-
method: 'POST',
|
|
34
|
-
headers: {
|
|
35
|
-
'Content-Type': 'application/json',
|
|
36
|
-
'x-fleet-token': token,
|
|
37
|
-
},
|
|
38
|
-
body: JSON.stringify({
|
|
39
|
-
machineId: identity.machineId,
|
|
40
|
-
user: identity.user,
|
|
41
|
-
hostname: identity.hostname,
|
|
42
|
-
developerName: identity.developerName,
|
|
43
|
-
osFriendly: identity.osFriendly,
|
|
44
|
-
platform: identity.platform,
|
|
45
|
-
shieldName,
|
|
46
|
-
nickname,
|
|
47
|
-
}),
|
|
48
|
-
});
|
|
49
|
-
const data = (await resp.json().catch(() => ({})));
|
|
50
|
-
if (!resp.ok || data.success === false || !data.data) {
|
|
51
|
-
throw new Error(data.error || `Enrollment failed (HTTP ${resp.status})`);
|
|
52
|
-
}
|
|
53
|
-
const result = data.data;
|
|
54
|
-
// Clear any leftover runtime cache (previous enrollment, failed/partial
|
|
55
|
-
// install) so a stale enforcing bundle can never keep blocking on a freshly
|
|
56
|
-
// enrolled machine. The next hook/gateway call fetches the real bundle.
|
|
57
|
-
(0, runtimeConfig_1.resetCacheOnEnrollment)();
|
|
58
|
-
const savedPath = (0, config_1.saveSetupConfig)({
|
|
59
|
-
organizationId: result.organizationId,
|
|
60
|
-
shieldId: result.shieldId,
|
|
61
|
-
shieldKey: result.shieldKey,
|
|
62
|
-
apiUrl,
|
|
63
|
-
});
|
|
64
|
-
console.log('');
|
|
65
|
-
console.log(`\x1b[32m✓ ${result.reused ? 'Re-enrolled' : 'Enrolled'}\x1b[0m ${result.shieldName}`);
|
|
66
|
-
const modeNote = result.mode === 'block'
|
|
67
|
-
? 'enforcing — dangerous actions and matching policies are blocked'
|
|
68
|
-
: result.mode === 'monitor'
|
|
69
|
-
? 'monitor — actions are logged but not blocked'
|
|
70
|
-
: 'shadow — evaluation only, nothing is blocked';
|
|
71
|
-
console.log(` Mode: ${result.mode} (${modeNote}). Change it anytime from the dashboard.`);
|
|
72
|
-
console.log(` Config: ${savedPath}`);
|
|
73
|
-
console.log('');
|
|
74
|
-
console.log('Next: \x1b[1mfullcourtdefense install-all\x1b[0m to wrap your MCP clients and install available runtime hooks.');
|
|
75
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { BotGuardConfig } from '../config';
|
|
2
|
-
/** Clients with a dedicated install-*-mcp-gateway command. */
|
|
3
|
-
export type GatewayClient = 'cursor' | 'claude-code' | 'claude-desktop' | 'codex' | 'gemini-cli' | 'windsurf' | 'vscode';
|
|
4
|
-
export declare const ALL_GATEWAY_CLIENTS: GatewayClient[];
|
|
5
|
-
export interface McpGatewayArgs {
|
|
6
|
-
mcpCommand?: string;
|
|
7
|
-
mcpArgs?: string;
|
|
8
|
-
/** Remote MCP server URL (Streamable HTTP / SSE) — alternative to --mcp-command. */
|
|
9
|
-
mcpUrl?: string;
|
|
10
|
-
/** Optional JSON object of extra HTTP headers for the remote MCP (e.g. auth). */
|
|
11
|
-
mcpHeaders?: string;
|
|
12
|
-
agentName?: string;
|
|
13
|
-
agentClient?: string;
|
|
14
|
-
developerName?: string;
|
|
15
|
-
shieldId?: string;
|
|
16
|
-
shieldKey?: string;
|
|
17
|
-
apiUrl?: string;
|
|
18
|
-
environment?: string;
|
|
19
|
-
userObjective?: string;
|
|
20
|
-
authority?: string;
|
|
21
|
-
approvalMode?: string;
|
|
22
|
-
approvalTimeoutMs?: string;
|
|
23
|
-
approvalPollMs?: string;
|
|
24
|
-
scanResponse?: string;
|
|
25
|
-
failClosed?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface InstallCursorMcpGatewayArgs extends McpGatewayArgs {
|
|
28
|
-
project?: string;
|
|
29
|
-
serverName?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface InstallClaudeCodeMcpGatewayArgs extends McpGatewayArgs {
|
|
32
|
-
scope?: string;
|
|
33
|
-
serverName?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface InstallClaudeDesktopMcpGatewayArgs extends McpGatewayArgs {
|
|
36
|
-
configPath?: string;
|
|
37
|
-
serverName?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface InstallVscodeMcpGatewayArgs extends McpGatewayArgs {
|
|
40
|
-
project?: string;
|
|
41
|
-
serverName?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface InstallCodexMcpGatewayArgs extends McpGatewayArgs {
|
|
44
|
-
project?: string;
|
|
45
|
-
serverName?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface InstallGeminiMcpGatewayArgs extends McpGatewayArgs {
|
|
48
|
-
project?: string;
|
|
49
|
-
serverName?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface InstallWindsurfMcpGatewayArgs extends McpGatewayArgs {
|
|
52
|
-
serverName?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface InstallMcpGatewayArgs extends McpGatewayArgs {
|
|
55
|
-
clients?: string;
|
|
56
|
-
cursorProject?: string;
|
|
57
|
-
claudeCodeScope?: string;
|
|
58
|
-
serverName?: string;
|
|
59
|
-
upload?: string;
|
|
60
|
-
apiKey?: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* How the gateway reaches the real MCP server: spawn a local process (stdio)
|
|
64
|
-
* or speak Streamable HTTP/SSE to a remote URL. Both flow through the exact
|
|
65
|
-
* same policy enforcement in McpGatewayServer.
|
|
66
|
-
*/
|
|
67
|
-
export type DownstreamSpec = {
|
|
68
|
-
kind: 'stdio';
|
|
69
|
-
command: string;
|
|
70
|
-
args: string[];
|
|
71
|
-
} | {
|
|
72
|
-
kind: 'http';
|
|
73
|
-
url: string;
|
|
74
|
-
headers?: Record<string, string>;
|
|
75
|
-
};
|
|
76
|
-
export declare function mcpGatewayCommand(args: McpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
77
|
-
export declare function installCursorMcpGatewayCommand(args: InstallCursorMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
78
|
-
export declare function installMcpGatewayCommand(args: InstallMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
79
|
-
export interface ProtectAllArgs extends McpGatewayArgs {
|
|
80
|
-
dryRun?: string;
|
|
81
|
-
config?: string;
|
|
82
|
-
clients?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface McpProtectionInspection {
|
|
85
|
-
servers: number;
|
|
86
|
-
protectedServers: number;
|
|
87
|
-
stalePathServers: number;
|
|
88
|
-
}
|
|
89
|
-
/** Read-only protection/path verification shared by daemon integrity checks. */
|
|
90
|
-
export declare function inspectMcpProtectionFile(file: string): McpProtectionInspection;
|
|
91
|
-
export interface GatewayIdentityHealResult {
|
|
92
|
-
file: string;
|
|
93
|
-
server: string;
|
|
94
|
-
from: string;
|
|
95
|
-
to: string;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* SELF-HEAL for the policy-identity contract. Scans MCP client config files (JSON and Codex
|
|
99
|
-
* TOML) for FCD-gateway-wrapped servers whose baked-in `--agent-name` is a stale generic
|
|
100
|
-
* `<developer>-<client>` default, and rewrites it to `<developer>-<server>` so dashboard
|
|
101
|
-
* policies targeting the MCP server (`agentName contains <server>`) match at runtime.
|
|
102
|
-
*
|
|
103
|
-
* Runs automatically from `discover` and `protect-all`, so a customer machine with configs
|
|
104
|
-
* written by an old CLI version converges to the correct identity without manual edits.
|
|
105
|
-
*/
|
|
106
|
-
export declare function healGatewayAgentIdentities(files: string[], dryRun?: boolean): GatewayIdentityHealResult[];
|
|
107
|
-
export declare function protectAllTargetFiles(extra?: string, allowedClientKeys?: Set<string>): Array<{
|
|
108
|
-
path: string;
|
|
109
|
-
source: string;
|
|
110
|
-
clientKey: string;
|
|
111
|
-
}>;
|
|
112
|
-
export declare function protectAllCommand(args: ProtectAllArgs, config: BotGuardConfig): Promise<void>;
|
|
113
|
-
export declare function unprotectAllCommand(args: ProtectAllArgs, config: BotGuardConfig): Promise<void>;
|
|
114
|
-
export declare function installClaudeCodeMcpGatewayCommand(args: InstallClaudeCodeMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
115
|
-
export declare function installClaudeDesktopMcpGatewayCommand(args: InstallClaudeDesktopMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
116
|
-
export declare function installCodexMcpGatewayCommand(args: InstallCodexMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
117
|
-
export declare function installGeminiMcpGatewayCommand(args: InstallGeminiMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
118
|
-
export declare function installWindsurfMcpGatewayCommand(args: InstallWindsurfMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|
|
119
|
-
export declare function installVscodeMcpGatewayCommand(args: InstallVscodeMcpGatewayArgs, config: BotGuardConfig): Promise<void>;
|