Snowflake reconciliation audit — badge integrity, Chain I harness, staging SQL#52
Merged
Merged
Conversation
…aging SQL (#52) P0: Chain K downgraded MODELED→HYPOTHESIS; three gaps blocked end-to-end validation (no Polaris mock, no staging SQL, containment guard URL bug). Fixed assert_loopback() to extract hostname via urlparse rather than passing the full URL string. Badge advances to MODELED once the mock Polaris service is added. P1: Chain I (Cortex MCP/planner/search) added to capture_baselines.py TOOL_FLOWS; mock-snowflake-mcp now started alongside the main mock. MOCK_BASELINE.txt created for tools/llm-attacks/cortex/lab-validation/. P1: Chain C NAAAPS subpath was silently falling back to offline heuristic. Added /fixture/seed-provider-session and /fixture/naaaps-scan to the mock; probe now runs in mock-NAAAPS mode. P2: Tenant staging SQL authored for Chains E, L, M — fulfils the MODELED badge's promise of tenant-confirmed measurement staged in lab-validation/. P2: Full baseline regenerated (17/17 tools rc=0); all per-tool MOCK_BASELINE.txt slices refreshed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
capture_baselines.py now scrubs ellipsis-suffix patterns (…XXXXXXXX), full PAT strings, and token_suffix JSON fields from captured stdout and audit snapshots before writing MOCK_BASELINE files. Baseline regenerated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MODELED -> HYPOTHESIS): three gaps blocked the claim -- no Polaris mock, no tenant staging SQL, and a containment guard bug passing a full URL string toassert_loopback()(now fixed viaurlparse). Footnote documents the path back toMODELED.cortex_search_poisoning,cortex_agent_mcp_bench, andcortex_agent_planner_steeradded tocapture_baselines.py;mock-snowflake-mcpnow started alongside the main mock.MOCK_BASELINE.txtcreated fortools/llm-attacks/cortex/lab-validation/./fixture/seed-provider-sessionand/fixture/naaaps-scanadded to the mock; probe now runsmock-NAAAPSmode instead of silently falling back to offline heuristic.storage_integration_validate.sql,oauth_scope_validate.sql,udf_eai_validate.sql-- fulfils theMODELEDbadge's promise of measurement staged inlab-validation/.rc=0; all per-toolMOCK_BASELINE.txtslices refreshed.Test plan
EXPLOIT_LAB_ACTIVE=1 SNOWFLAKE_LAB_ACCOUNT=lab-acct-00000000 python3 infra/lab/mock-snowflake/capture_baselines.py-- confirm 17/17 rc=0mode: mock-NAAAPS(notoffline-heuristic) in naaaps-bypass-probe runtools/llm-attacks/cortex/lab-validation/MOCK_BASELINE.txtexists and contains all three Chain I tool runs[HYPOTHESIS]in bothsnowflake-platform-attack-surface-2026.mdandchain-reference-table.mdpython tools/lateral-movement/snowflake-pivot/iceberg_catalog_pivot.py --account lab-acct-00000000 --pat dummy --catalog-token dummy-- confirm error is now connection refused (no mock), notCannot resolveGenerated with Claude Code