Benefits eligibility AI · Child welfare AI · Disability determination AI · Housing inspection AI

Prompt injection in government and social services AI

Government and social services AI has become the operational backbone of benefits eligibility determination, child welfare case management, disability claim adjudication, and public housing compliance at every level of federal, state, and local government in the United States: Maximus AI — which manages over $5 billion in government contracts and administers Medicaid, SNAP (Supplemental Nutrition Assistance Program), TANF (Temporary Assistance for Needy Families), and WIC eligibility programmes across more than 30 states — processes income verification document scans, bank statement photograph submissions, proof-of-residency document images, and asset disclosure form scans through AI-assisted eligibility determination workflows that decide whether millions of applicants qualify for federal benefits programmes each year, Tyler Technologies’ Socrata/CBOSS AI platform — deployed at over 500 government clients including state health and human services agencies, county social services departments, and municipal government offices across the US — processes citizen document submissions, case file photographs, and administrative record scans through AI-assisted government case management and benefits administration workflows, Conduent AI — which processes over 1.2 billion government transactions annually including Medicaid managed care claims, EBT (Electronic Benefits Transfer) card system transactions, and government payment processing operations — processes document images, transaction record photographs, and eligibility certification scans through AI-assisted government payment and benefits administration platforms, Deloitte AI public sector practice — providing AI-assisted case management solutions to federal and state SNAP, Medicaid, child welfare, and social services agencies including state human services departments and HHS regional offices — processes case document photographs, home visit site images, and administrative record scans through AI-assisted social services workflow automation and eligibility determination platforms, IBM Watson public services AI — deployed at the Social Security Administration (SSA), Department of Health and Human Services (HHS), and state welfare agencies — processes medical evidence document images, functional assessment photographs, and administrative record scans through AI-assisted disability determination and benefits administration workflows, Salesforce Public Sector AI — deployed at state human services agencies, county social services departments, and municipal government offices — processes citizen document submissions and case file photographs through AI-assisted government constituent management and social services delivery platforms, Microsoft Azure Government AI — holding an Authority to Operate (ATO) across 17 Cabinet-level federal agencies and providing FedRAMP-authorised AI services to state and local government social services agencies — processes government document images, eligibility verification photographs, and compliance record scans through AI-assisted government cloud workflows, and Accenture AI government services and Leidos government AI provide AI-assisted social services automation, benefits eligibility determination, and government programme management to federal and state agencies including DHS, HHS, SSA, and state health and human services departments. These government and social services AI platforms share a structural vulnerability that creates a severe adversarial image injection exposure: each depends on document scans, photographs, and evidence images submitted through citizen-facing or caseworker-facing portals where the submitting party — a benefits applicant, a housing landlord, a medical provider, a child welfare contractor, or a government programme participant — has direct access to the AI submission pathway and a significant financial, custodial, or administrative interest in the AI’s eligibility, safety, disability, or compliance determination output. Adversarially crafted images submitted through any of these pathways can suppress income or asset disclosures that would disqualify a benefits applicant, conceal child safety hazards that would require removal or corrective action orders, falsify functional capacity assessments that would deny disability benefits, and mask housing habitability deficiencies that would fail HUD Section 8 Housing Quality Standards inspections — with consequences spanning False Claims Act criminal liability, SNAP Intentional Program Violation sanctions, Title IV-E child welfare enforcement, SSDI fraud prosecution, and HUD OIG referrals.

TL;DR

Government and social services AI platforms — Maximus AI (Medicaid/SNAP/TANF/WIC eligibility), Tyler Technologies Socrata/CBOSS AI (500+ government clients), Conduent AI (1.2B+ government transactions), Deloitte AI public sector (federal/state SNAP, Medicaid, child welfare), IBM Watson public services AI (SSA, HHS), Salesforce Public Sector AI (state human services), Microsoft Azure Government AI (17 Cabinet-level agencies, ATO-approved), Accenture AI government services, Leidos government AI — process income verification document scans, child welfare home visit photographs, Social Security disability claim medical evidence images, and HUD housing inspection photographs through AI benefits eligibility, child welfare case management, disability determination, and housing compliance inspection pipelines. Adversarially crafted images submitted through citizen document upload portals, caseworker photograph submission interfaces, medical evidence document APIs, and housing inspection photograph systems can suppress income and asset disclosures above SNAP and Medicaid eligibility thresholds, conceal child safety hazards that would require removal or corrective action orders, falsify functional capacity assessments that would deny SSDI or SSI claims, and mask housing habitability deficiencies that would fail Section 8 HQS inspections and block rental assistance payments. Glyphward scans each image at the ingestion boundary with a threshold of ≥ 52 for government and social services AI contexts (SNAP 7 USC §2015, Medicaid 42 USC §1396, SSDI 42 USC §423, HUD 24 CFR Part 982, False Claims Act 31 USC §3729, child welfare Title IV-E). Free tier — 10 scans/day, no card required.

Four adversarial injection surfaces in government and social services AI

1. Benefits eligibility document AI injection (Maximus AI, Tyler Technologies AI, Conduent AI)

Benefits eligibility determination AI processes scanned images of income verification documents — including pay stub photographs, employer wage statement scans, bank statement photograph submissions, tax return document images, self-employment income declaration scans, and asset disclosure form images — through AI-assisted eligibility workflows that determine whether an applicant’s household income and assets fall within the programme eligibility thresholds for Medicaid, SNAP, TANF, and WIC at federal and state levels. Maximus’ AI eligibility determination platform, which administers benefits programmes across more than 30 states under contracts worth over $5 billion, processes applicant document submissions through AI-assisted income extraction, asset verification, and household composition determination tools that generate eligibility recommendations forwarded to caseworkers or, in automated determination systems, directly triggering eligibility approvals without individual caseworker review. Tyler Technologies’ CBOSS AI platform processes benefits eligibility document submissions for state and county human services agencies, integrating AI-assisted income and asset extraction from scanned documents with government case management workflows that track ongoing eligibility recertification, overpayment recovery, and programme compliance for enrolled beneficiaries. Conduent’s AI government services platform processes over 1.2 billion government transactions annually including Medicaid managed care eligibility verifications, EBT benefit balance management transactions, and SNAP eligibility certification record maintenance for state agencies, with AI-assisted document processing workflows that extract eligibility-relevant data from the full range of applicant verification document types submitted through state benefits portals.

The income verification document scan submission pathway is the adversarial injection surface: applicants and household members submit pay stub photographs, bank statement scans, employer letter images, and asset disclosure form photographs through Maximus AI, Tyler Technologies CBOSS AI, and Conduent AI state benefits portal interfaces for AI extraction of income values, asset totals, and household composition data used in eligibility determination. An adversarially crafted income document scan — in which pixel perturbations applied to a pay stub photograph cause Maximus AI to extract a monthly gross income value below the SNAP gross income limit (130% of the federal poverty level, equivalent to $1,580/month for a single-person household in 2026) when the actual pay stub documents monthly gross income that exceeds the SNAP eligibility threshold — can result in a SNAP eligibility determination approving benefits for a household that is in fact above the programme income limit. The same adversarial mechanism applies to Medicaid Modified Adjusted Gross Income (MAGI) eligibility thresholds, TANF income eligibility ceilings set by individual state welfare plans, and WIC income limits (185% of the federal poverty level). The adversarial suppression motivation in benefits eligibility AI is economic: a SNAP household benefit for a family of four averages approximately $800 per month in 2026, a Medicaid enrollment provides health insurance coverage with per-member per-month managed care payments of $400–$800, and TANF cash assistance provides $200–$700 per month depending on state programme design — each creating a meaningful financial incentive for applicants with knowledge of adversarial image manipulation to attempt document-based benefits fraud through the AI document processing pipeline.

SNAP 7 USC §2015 (eligibility requirements and disqualification provisions) and the SNAP Intentional Program Violation (IPV) sanctions framework impose significant consequences for benefits fraud through false statements to the programme: a first SNAP IPV finding results in a 12-month disqualification from SNAP benefits, a second IPV finding results in a 24-month disqualification, and a third IPV finding results in permanent disqualification from SNAP. For Medicaid, 42 USC §1396 (Title XIX of the Social Security Act) and the Medicaid false statements provision at 42 USC §1320a-7b impose criminal penalties of up to $10,000 per false statement and up to 5 years imprisonment for knowingly making false statements to obtain Medicaid benefits. The False Claims Act (31 USC §3729) applies to both direct fraud against federal benefits programmes and to the state agencies and contractors (including Maximus, Tyler Technologies, and Conduent) that administer those programmes: a qui tam relator who identifies that an AI-assisted benefits determination platform was systematically approving ineligible applicants because adversarially manipulated document images were not being scanned for pixel-level manipulation can file a False Claims Act complaint seeking treble damages and civil penalties of $13,946–$27,894 per false claim (2026 FCA penalty schedule). State Medicaid fraud control units (MFCUs), funded under 42 USC §1396b(a)(6), have jurisdiction to investigate and prosecute Medicaid fraud including benefits obtained through AI document manipulation, and state prosecutors have additionally charged AI-assisted benefits fraud under state false statements, welfare fraud, and computer fraud statutes. Threshold: 50–55 for benefits eligibility document AI (SNAP 7 USC §2015, Medicaid 42 USC §1396, TANF 42 USC §601, False Claims Act 31 USC §3729, federal SNAP IPV sanctions, state MFCU referral).

2. Child welfare assessment and home visit AI injection (Tyler Technologies CASES AI, IBM Watson Child Welfare AI, Deloitte AI child services)

Child welfare case management AI processes photographs and images collected during home visit assessments — including site photographs of living conditions, hazard documentation images showing exposed wiring, mold growth, or structural deficiencies, food storage adequacy photographs, sleeping arrangement images, and physical space safety observation photographs — through AI-assisted child protection assessment platforms that inform child protection investigators, foster care licensing workers, and family reunification coordinators in their determination of whether a child’s home environment meets the safety and adequacy standards required for the child to remain in or be returned to parental custody. Tyler Technologies’ CASES AI platform — deployed at child welfare agencies in counties and states across the US — processes home visit assessment images and case documentation photographs through AI-assisted child protection case management tools that generate structured safety assessment outputs integrated with caseworker investigation reports, court filings, and permanency planning documents. IBM Watson Child Welfare AI processes case assessment images, home visit photographs, and risk indicator documentation for state and county child welfare agencies, using AI-assisted risk scoring and safety assessment tools that aggregate multimodal case evidence into structured risk and safety assessment outputs that inform supervisory review and court reporting. Deloitte AI child services practice provides AI-assisted child welfare case management systems to state and county child protective services agencies, incorporating AI image assessment tools that process home visit photographs and living condition evidence images as part of integrated child welfare information systems (CWIS) that feed into court reporting, permanency planning, and performance measurement systems required under federal Title IV-E programme oversight.

The home visit site photograph and living condition assessment image submission pathway is the adversarial injection surface: home visit caseworkers, foster care licensing investigators, and family reunification assessment workers submit photographs of the home environment — living areas, sleeping spaces, kitchen food storage areas, bathroom facilities, exterior property conditions, and identified hazard areas — through Tyler Technologies CASES AI, IBM Watson Child Welfare AI, and Deloitte AI child services platforms for AI assessment of whether the home meets the safety and adequacy standards for child placement. An adversarially crafted home visit photograph — in which pixel perturbations are applied to a photograph showing exposed electrical wiring in a child’s bedroom, black mold growth on bedroom walls, inadequate food storage with visible pest evidence, or physical discipline marks visible in a living area image — can cause Tyler Technologies CASES AI or IBM Watson Child Welfare AI to classify the home environment as meeting the applicable safety standards for child placement when the actual photograph documents a condition that would require the caseworker to initiate a corrective action order, delay foster care approval, or trigger an emergency removal determination. The adversarial suppression motivation in child welfare AI is custodial: parents subject to child protective services investigation, foster care applicants under home licensing review, and family reunification programme participants all have a direct interest in home environment AI assessments that classify their living conditions as safe — and the home visit photograph submission pathway in modern AI-assisted child welfare platforms creates an access point for adversarial image manipulation if the platform does not implement pre-scan integrity verification at the photograph ingestion boundary.

Title IV-E (42 USC §670 et seq., Fostering Connections to Success Act, Family First Prevention Services Act) establishes the federal framework for foster care and adoption assistance, and the Title IV-E requirements for child safety, permanency, and well-being provide the legal backdrop for child welfare home assessment AI determinations: a foster care placement decision or family reunification determination made on the basis of an adversarially manipulated home environment AI assessment that misclassifies an unsafe home as safe creates direct exposure under the due process protections applicable to children in state custody (Youngberg v. Romeo, 457 US 307; DeShaney v. Winnebago County, 489 US 189) and the constitutionally required procedural safeguards in removal and reunification proceedings. The Child Abuse Prevention and Treatment Act (CAPTA, 42 USC §5101 et seq.) requires states receiving CAPTA formula grants to maintain child abuse and neglect investigation standards and to conduct thorough investigations of child abuse and neglect reports — an adversarially manipulated home visit AI that suppresses visible child hazard evidence in the AI-assisted investigation report generates a CAPTA compliance failure that can trigger federal child welfare audit findings and CAPTA grant conditions. The Indian Child Welfare Act (ICWA, 25 USC §1901 et seq.) imposes additional procedural requirements for removal and placement determinations involving children who are members of or eligible for membership in Indian tribes, and ICWA compliance requires that placement decisions be based on accurate assessments of the home environment — an adversarially manipulated home visit AI assessment that misclassifies a home as safe for ICWA-protected child placement creates both federal ICWA compliance exposure and tribal sovereignty concerns that attract additional federal oversight from the Bureau of Indian Affairs and tribal social services agencies. State child welfare statutes imposing mandatory reporting obligations on home visit caseworkers, supervisors, and AI system administrators provide independent criminal exposure for knowing falsification or concealment of child safety evidence in AI-assisted investigation records. Threshold: 50 for child welfare assessment AI (Title IV-E 42 USC §670, CAPTA 42 USC §5101, ICWA 25 USC §1901, state mandatory reporting, due process in removal proceedings).

3. Social Security disability claim medical evidence AI injection (SSA AI, IBM Watson SSA, Maximus DDS AI)

Social Security disability determination AI processes medical evidence document images — including physician report document scans, Residual Functional Capacity (RFC) assessment form photographs, treatment record page images, functional capacity evaluation report scans, psychological assessment report photographs, and medical imaging study report page images — through AI-assisted disability determination workflows at SSA Disability Determination Services (DDS) offices across all 50 states and the District of Columbia to assess whether a claimant meets the Social Security Administration’s disability standards for SSDI (Social Security Disability Insurance, 42 USC §423) or SSI (Supplemental Security Income, 42 USC §1382) benefits. IBM Watson SSA AI processes medical evidence document images and structured medical record data for SSA DDS operations, using AI-assisted medical evidence review and RFC assessment tools that generate structured functional limitation findings used by DDS adjudicators in the five-step sequential evaluation process (20 CFR §404.1520 for SSDI, 20 CFR §416.920 for SSI). Maximus’ DDS AI platform provides AI-assisted disability determination processing for state DDS agencies under SSA contracts, processing medical evidence document scans and physician report photographs through AI-assisted RFC extraction and medical evidence summary tools that generate structured functional capacity findings integrated with the SSA’s electronic claims processing system. Microsoft Azure Government AI and Salesforce Public Sector AI provide cloud infrastructure and workflow management for SSA and state DDS AI-assisted disability determination operations, processing millions of medical evidence document images annually through FedRAMP-authorised government cloud environments with AI document processing workflows integrated with SSA electronic claims systems.

The medical evidence document scan and physician report photograph submission pathway is the adversarial injection surface: disability claimants, their representatives (attorneys, non-attorney representatives, advocacy organisations), and treating physicians submit RFC assessment form scans, physician narrative report photographs, functional capacity evaluation document images, and treatment record page scans through SSA’s evidence submission portals (including the SSA Evidence Portal and state DDS electronic submission systems) for AI medical evidence review and functional capacity extraction. An adversarially crafted RFC assessment form scan — in which pixel perturbations are applied to the physician-completed RFC form in the section documenting the claimant’s maximum sustained work capacity, causing Maximus DDS AI to extract a sedentary or less-than-sedentary functional capacity classification from the form when the physician actually documented a light or medium work capacity — can result in a disability determination that finds the claimant disabled under the SSA Medical-Vocational Guidelines (the “Grid Rules” at 20 CFR Part 404, Subpart P, Appendix 2) when the claimant would in fact be denied under the Grid Rules based on the physician’s actual RFC assessment. The adversarial RFC manipulation mechanism exploits the SSA five-step sequential evaluation: at Step 4 (can the claimant perform past relevant work?) and Step 5 (can the claimant perform any other work in the national economy?), the AI-extracted RFC functional capacity classification is determinative for claimants aged 50 and above under the Medical-Vocational Guidelines, making the RFC extraction step the highest-value adversarial manipulation point in the SSA disability determination AI pipeline. SSDI monthly benefit amounts average approximately $1,540 in 2026 (with 10-year benefit streams worth $180,000+ for claimants in their early 50s), creating a substantial financial incentive for adversarial RFC document manipulation by claimants or their representatives.

Social Security Act criminal fraud provisions at 42 USC §408 (Social Security fraud) impose criminal penalties of up to 5 years imprisonment and fines for knowingly making false statements to obtain Social Security benefits, including disability benefits obtained through falsified RFC assessment documents submitted to SSA or state DDS systems. The SSA Office of Inspector General (SSA OIG) investigates Social Security disability fraud, including fraud involving the submission of falsified or manipulated medical evidence, and refers cases to the Department of Justice for prosecution under 42 USC §408, 18 USC §1001 (false statements to federal agencies), and 18 USC §1341 (mail fraud) where medical evidence was submitted by postal mail. The False Claims Act (31 USC §3729) applies to SSA disability fraud when the false RFC assessment was submitted as part of a pattern of fraudulent claims — disability attorneys and non-attorney representatives who knowingly assist claimants in submitting adversarially manipulated RFC document scans face False Claims Act liability as “persons” who “knowingly present[] a false or fraudulent claim for payment or approval” to the federal government. SSA’s Program Operations Manual System (POMS) DI 22505 (Medical Evidence of Record) and DI 24510 (RFC Assessment) establish the operational standards for medical evidence processing in DDS disability determinations; an SSA DDS or contractor that discovers that its AI medical evidence processing system was generating RFC extractions from adversarially manipulated document images has both an operational obligation to audit prior determinations affected by the compromised AI pipeline and a programme integrity reporting obligation to SSA Central Office under the applicable SSA programme integrity requirements. 20 CFR Part 404 (SSDI regulations) and 20 CFR Part 416 (SSI regulations) additionally provide claimants the procedural right to reconsideration, ALJ hearing, and federal court review of unfavourable disability determinations — a DDS that cannot demonstrate the integrity of its AI medical evidence processing system faces adversarial litigation risk in ALJ and federal court proceedings where claimants contest denials that were generated by an AI pipeline subject to known adversarial manipulation vulnerabilities. Threshold: 50–55 for Social Security disability claim medical evidence AI (42 USC §423 SSDI, 42 USC §1382 SSI, 42 USC §408 criminal penalties, False Claims Act, SSA POMS DI 22505/24510).

4. HUD housing inspection and Section 8 voucher AI injection (HUD AI, Tyler Technologies housing AI, Conduent housing assistance AI)

HUD housing compliance inspection AI processes photographs submitted through AI-assisted Housing Quality Standards (HQS) inspection platforms — including heating system condition photographs, structural integrity images, plumbing fixture photographs, electrical system condition images, pest infestation evidence photographs, sanitation condition images, and overall unit habitability assessment photographs — to determine whether a residential unit meets the HUD Housing Quality Standards (HQS, 24 CFR Part 982, Subpart I) required for Section 8 Housing Choice Voucher Program rental assistance payments, the Low Income Housing Tax Credit (LIHTC) physical condition requirements for compliance with 26 USC §42, and the HUD public housing unit assessment standards for continued public housing authority (PHA) occupancy. Tyler Technologies’ housing AI platform processes housing inspection photographs for public housing authorities and state housing finance agencies using AI-assisted HQS compliance classification and inspection management tools integrated with Tyler Technologies’ government case management and housing assistance administration platforms. Conduent’s housing assistance AI processes housing programme transactions and inspection data for public housing authorities and state housing agencies, with AI-assisted inspection data management tools that process housing unit condition photographs and inspection report images for Section 8 voucher programme administration and compliance monitoring. Microsoft Azure Government AI and Salesforce Public Sector AI provide the cloud AI infrastructure for HUD-funded housing agencies and state housing authorities that use AI-assisted inspection management tools to process the volume of annual inspection photographs generated by Section 8 HQS inspection programmes — with approximately 2.3 million Section 8 voucher-assisted households in 2026, each requiring an annual HQS inspection, the inspection photograph processing volume creates a high-throughput AI document pipeline with significant adversarial surface area.

The housing inspection photograph submission pathway is the adversarial injection surface: HUD-approved inspection contractors, PHA-employed housing inspection officers, and third-party inspection management companies submit housing unit inspection photographs through AI-assisted HQS inspection platforms — including Tyler Technologies housing AI and Conduent housing assistance AI — for AI classification of whether the photographed unit condition meets HUD HQS in each of the 13 HQS inspection categories (sanitary facilities, food preparation and refuse disposal, space and security, thermal environment, illumination and electricity, structure and materials, interior air quality, water supply, lead-based paint, access, site and neighbourhood, sanitary conditions, smoke detectors). An adversarially crafted housing inspection photograph — in which pixel perturbations suppress a heating system failure photograph showing an inoperative boiler or non-functioning furnace in a winter-condition unit, structural damage evidence showing visible roof deck failure or ceiling collapse risk, plumbing deficiency image showing sewage backup or non-functioning toilet, or pest infestation photograph showing visible rodent evidence in food preparation areas — can cause HUD AI inspection platforms to classify the photographed unit as meeting HQS in the affected inspection category when the actual photograph documents a condition that constitutes a “fail” under the applicable HQS category standard and requires the landlord to make corrective repairs before Section 8 rental assistance can be paid to the landlord for that unit. The adversarial suppression motivation in housing inspection AI is rental income driven: Section 8 Housing Choice Voucher rental assistance payments average $1,100–$1,800 per month in major metropolitan areas in 2026, representing the full rent or the majority of rent for the unit — a landlord with a unit that has a heating failure, structural deficiency, or pest infestation that would cause an HQS inspection fail has a direct financial incentive to prevent the HQS fail finding, because the HQS fail suspends Section 8 rental assistance payments until the deficiency is corrected and re-inspected.

HUD Section 8 Housing Quality Standards at 24 CFR Part 982, Subpart I — and specifically 24 CFR §982.401 (HQS performance requirements) and 24 CFR §982.404 (owner and tenant responsibilities for HQS) — require that a Section 8 assisted unit meet HQS at the time of initial lease-up and throughout the assisted tenancy, and that a PHA terminate Housing Assistance Payments (HAP) contract for units that fail HQS and are not corrected within the applicable correction period. An adversarially manipulated HQS AI that classifies a failing unit as passing HQS continues Section 8 HAP payments to the landlord for a unit that does not meet the federal housing quality standards, creating a direct False Claims Act (31 USC §3729) exposure: Section 8 HAP contract payments made to a landlord based on a false HQS compliance certification — whether the falsification was produced by manual inspection fraud or by adversarial manipulation of the AI inspection platform — constitute false claims submitted to a federal programme, with FCA civil penalties of $13,946–$27,894 per false claim and treble damages on the value of the HAP payments made during the period of the false certification. The Fair Housing Act (42 USC §3604) provides additional exposure: HQS failures that are systematically suppressed by adversarially manipulated AI inspection tools in units occupied by protected class members (race, color, national origin, religion, sex, familial status, disability) can constitute Fair Housing Act violations through disparate treatment or disparate impact, creating HUD OIG investigation referral exposure and DOJ Fair Housing Act enforcement risk. LIHTC noncompliance reporting under IRS Form 8823 (26 USC §42) applies to LIHTC-financed units that fail physical condition requirements: an adversarially manipulated AI inspection that suppresses a LIHTC physical noncompliance finding prevents the required Form 8823 filing with the IRS and the state housing finance agency, creating tax credit recapture risk and IRS noncompliance exposure for the LIHTC partnership. HOTMA (Housing Opportunity Through Modernization Act) inspection reform provisions, which streamline HQS inspection procedures for Section 8, do not eliminate the underlying HQS habitability standards or the False Claims Act and Fair Housing Act exposure for units with suppressed HQS deficiencies. Threshold: 50 for HUD housing inspection and Section 8 voucher AI (24 CFR Part 982 HQS, Fair Housing Act 42 USC §3604, False Claims Act 31 USC §3729, LIHTC IRS Form 8823, HUD OIG fraud referral).

Integration: government and social services AI document ingestion with Glyphward pre-scan

Government and social services AI document image ingestion flows from citizen benefits portal document upload APIs and caseworker photograph submission interfaces, SSA evidence portal medical record scan endpoints, HUD and PHA housing inspection photograph management systems, and child welfare case management platform document submission portals into AI benefits eligibility determination, child welfare assessment, disability claim adjudication, and housing compliance classification pipelines. Insert Glyphward’s pre-scan at the ingestion boundary — in all government and social services AI contexts, where False Claims Act, SNAP IPV, Social Security fraud, and child welfare statutory consequences of adversarial document manipulation are categorically significant:

import asyncio
import base64
import hashlib
import os
import uuid
from enum import Enum
from pathlib import Path

import httpx

GLYPHWARD_API_KEY = os.environ["GLYPHWARD_API_KEY"]
GLYPHWARD_SCAN_URL = "https://glyphward.com/v1/scan"

# Government / social services AI — SNAP 7 USC §2015, Medicaid 42 USC §1396,
# TANF 42 USC §601, SSDI 42 USC §423, SSI 42 USC §1382, HUD 24 CFR Part 982,
# Title IV-E 42 USC §670, False Claims Act 31 USC §3729, 42 USC §408 SSA fraud.
# Threshold 52 — federal programme integrity and criminal consequences of false
# negatives (adversarial images passing pre-scan) exceed operational cost of
# false positives (human caseworker review of borderline document scans).
THRESHOLD_GOV_SOCIAL = 52


class GovSocialAIContext(str, Enum):
    BENEFITS_ELIGIBILITY = "benefits_eligibility"  # Maximus AI, Tyler CBOSS, Conduent
    CHILD_WELFARE        = "child_welfare"          # Tyler CASES AI, IBM Watson, Deloitte
    DISABILITY_CLAIM     = "disability_claim"       # SSA AI, IBM Watson SSA, Maximus DDS
    HOUSING_INSPECTION   = "housing_inspection"     # HUD AI, Tyler housing AI, Conduent


async def scan_government_document(
    image_path: str | Path,
    context: GovSocialAIContext,
    agency_id_hash: str,    # SHA-256 of agency FIPS code or programme identifier
    case_hash: str,         # SHA-256 of case number or claimant ID — never raw PII
    document_ref: str,      # e.g. "paystub_jan2026", "rfc_form_dr_jones", "hqs_unit_4b"
    client: httpx.AsyncClient,
) -> dict:
    """
    Scan a government or social services AI document image for adversarial
    injection payloads before forwarding to benefits eligibility AI,
    child welfare case management AI, SSA disability determination AI,
    or HUD housing inspection compliance AI.

    Raises AdversarialGovDocumentError if the Glyphward score meets or
    exceeds the government/social services threshold (52).
    """
    image_bytes = Path(image_path).read_bytes()
    image_b64 = base64.b64encode(image_bytes).decode()
    image_sha256 = hashlib.sha256(image_bytes).hexdigest()
    scan_id = str(uuid.uuid4())

    resp = await client.post(
        GLYPHWARD_SCAN_URL,
        headers={"Authorization": f"Bearer {GLYPHWARD_API_KEY}"},
        json={
            "image": image_b64,
            "source": context.value,
            "metadata": {
                "gov_context": context.value,
                "agency_id_hash": agency_id_hash,
                "case_hash": case_hash,
                "document_ref": document_ref,
                "client_scan_id": scan_id,
                "image_sha256": image_sha256,
            },
        },
        timeout=10.0,
    )
    resp.raise_for_status()
    result = resp.json()

    audit_record = {
        "agency_id_hash": agency_id_hash,
        "case_hash": case_hash,
        "document_ref": document_ref,
        "gov_context": context.value,
        "scan_id": result["scan_id"],
        "client_scan_id": scan_id,
        "image_sha256": image_sha256,
        "score": result["score"],
        "flagged_region": result.get("flagged_region"),
        "threshold": THRESHOLD_GOV_SOCIAL,
        "action": "blocked" if result["score"] >= THRESHOLD_GOV_SOCIAL else "allowed",
    }
    await write_gov_programme_integrity_record(audit_record)

    if result["score"] >= THRESHOLD_GOV_SOCIAL:
        raise AdversarialGovDocumentError(
            f"Government AI document blocked [{context.value}]: "
            f"scan_id={result['scan_id']} score={result['score']} "
            f"agency_hash={agency_id_hash} ref={document_ref}"
        )
    return result


async def write_gov_programme_integrity_record(record: dict) -> None:
    """Persist programme integrity audit record to agency records system (stub)."""
    import json, sys
    print(json.dumps(record), file=sys.stderr)


class AdversarialGovDocumentError(Exception):
    """Raised when a government AI document image exceeds the adversarial injection threshold."""
    pass

Call scan_government_document() with GovSocialAIContext.BENEFITS_ELIGIBILITY for all income verification document scans, bank statement photographs, proof-of-residency images, and asset disclosure form scans before Maximus AI, Tyler Technologies CBOSS AI, or Conduent AI SNAP, Medicaid, TANF, and WIC eligibility determination — this is the highest-volume integration point in the government AI pipeline because benefits eligibility document submissions are continuous across millions of active cases in recertification, redetermination, and initial application workflows. Call with GovSocialAIContext.CHILD_WELFARE for all home visit site photographs, living condition assessment images, and child safety observation photographs before Tyler Technologies CASES AI, IBM Watson Child Welfare AI, or Deloitte AI child services platforms — the child welfare integration is the highest-consequence integration point because adversarial suppression of visible child safety hazards in home visit photographs directly affects child safety determinations in custody, placement, and reunification proceedings. Call with GovSocialAIContext.DISABILITY_CLAIM for all RFC assessment form scans, physician report photographs, functional capacity evaluation document images, and treatment record page scans before SSA AI, IBM Watson SSA, or Maximus DDS AI medical evidence review — retain the scan_id and image_sha256 in the DDS case file as part of the medical evidence processing audit trail required under SSA POMS DI 22505. Call with GovSocialAIContext.HOUSING_INSPECTION for all housing unit condition photographs, heating system images, structural condition photographs, and habitability assessment images before HUD AI, Tyler Technologies housing AI, or Conduent housing assistance AI HQS classification — the Glyphward audit record should be retained as part of the PHA’s Section 8 programme administration records for the HAP contract audit trail under 24 CFR §982.158 (PHA records). The agency_id_hash and case_hash fields must always be SHA-256 hashes of agency and case identifiers — never raw PII or case numbers — to maintain HIPAA and Privacy Act compliance in the Glyphward audit log. Get early access

Coverage matrix

Control Benefits eligibility AI injection Child welfare AI injection Disability claim AI injection Housing inspection AI injection
Text-only PI scanners (Lakera, LLM Guard) No — adversarial pixel perturbations in income document scan photographs are invisible to text-based analysis and not detected by string-level injection scanning No — home visit photograph pixel manipulation concealing physical hazards is not detected by text-only scanning pipelines No — RFC form scan pixel perturbations in functional capacity value fields are not visible to text scanners operating on extracted text rather than raw image pixels No — housing inspection photograph pixel manipulation suppressing HQS deficiency evidence is not caught by text-only analysis
Government verification procedures (state agency audit, SSA CDR, HUD inspection oversight) State agency eligibility audits and federal SNAP QC review verify sample eligibility determinations but do not include controls for adversarial pixel-level manipulation of income document scan inputs to AI eligibility extraction State child welfare CFSR reviews assess programme performance but do not include inspection procedures for adversarial pixel manipulation of home visit AI photograph inputs at the caseworker submission boundary SSA Continuing Disability Reviews (CDRs) and state DDS quality assurance processes review case files but do not detect adversarial manipulation of medical evidence document scan images before AI RFC extraction HUD REAC (Real Estate Assessment Center) oversight and PHA inspection quality control review inspection outcomes but do not prevent adversarial manipulation of housing unit inspection photographs submitted to AI HQS classification platforms
Caseworker manual review Caseworkers reviewing AI-extracted income values against original documents can detect gross document fraud but cannot detect sub-pixel adversarial perturbations applied to document scan photographs before AI extraction in high-volume automated determination workflows Supervisory review of home visit AI assessments can validate field observations but adversarial suppression of hazard indicators in AI image classification prevents the AI safety flag that would trigger supervisory escalation DDS adjudicators review AI-extracted RFC findings against the medical record but sub-pixel adversarial perturbations in RFC form scan photographs that shift the extracted functional capacity category are not detectable in the adjudicator’s review of the AI output PHA housing specialists reviewing AI HQS inspection results can identify obvious discrepancies but cannot detect sub-pixel adversarial manipulation in inspection photographs that caused the AI to pass a condition that should fail
Glyphward Yes — threshold 52; agency_id_hash and case_hash audit trail; blocks adversarially crafted income document scans before Maximus/Tyler/Conduent AI SNAP and Medicaid eligibility extraction Yes — threshold 52; blocks adversarially crafted home visit photographs before Tyler CASES/IBM Watson/Deloitte AI child safety assessment; case_hash audit trail for Title IV-E programme records Yes — threshold 52; blocks adversarially crafted RFC form scans before SSA/IBM Watson/Maximus DDS AI functional capacity extraction; scan_id retained in DDS case file audit trail Yes — threshold 52; blocks adversarially crafted housing inspection photographs before HUD/Tyler/Conduent AI HQS classification; audit record retained in PHA HAP contract records per 24 CFR §982.158

Frequently asked questions

How does adversarial manipulation of benefits eligibility AI differ from conventional document fraud, and why do existing programme integrity controls not detect it?

Conventional document fraud in benefits eligibility programmes — submitting a manually altered pay stub showing a falsely reduced income figure, fabricating a bank statement with a lower account balance than the applicant’s actual balance, or submitting a forged employer letter to establish false eligibility — is detectable through several existing programme integrity controls: state income data cross-matches under the Income Eligibility and Verification System (IEVS, 42 USC §1320b-7) compare Medicaid applicant income declarations against Social Security Administration wage records, state wage records, and unemployment insurance records; the SSA’s Prisoner Update Processing System (PUPS) and Death Master File are used to detect ineligible claimants; and the USDA SNAP State Options Report authorises states to use commercial data verification to cross-check applicant-reported income and asset data. These data-matching controls are designed to detect the scenario where an applicant submits a false income figure that does not match the corresponding government data record — and they are effective against manual document falsification that produces a false income value.

Adversarial image injection is a categorically different threat because the adversarial manipulation operates on the AI document processing pipeline rather than on the underlying income data. The applicant’s actual pay stub shows income above the SNAP eligibility threshold — and that income is correctly recorded in SSA wage records and state quarterly wage data that IEVS cross-match queries will access. What the adversarial perturbation changes is not the existence or amount of the income in government data systems but the value that the Maximus AI or Tyler Technologies CBOSS AI extracts from the pay stub photograph that the applicant submits through the benefits portal. If the AI extraction from the adversarially manipulated photograph produces a below-threshold income value that is entered into the caseworker’s eligibility determination workflow, the IEVS data cross-match that runs days or weeks later will identify the discrepancy — but in automated determination systems with programmatic eligibility approvals triggered by AI-extracted values, benefits may already have been approved and initial payments issued before the IEVS discrepancy is resolved. The detection gap between AI extraction and IEVS cross-match resolution is the window of adversarial programme integrity exposure that Glyphward pre-scan closes by verifying image integrity at the document submission boundary, before the AI extracts the income value that initiates the eligibility determination workflow.

What are the legal consequences for a child welfare agency when an adversarially manipulated home visit AI assessment results in a child being placed in an unsafe home environment?

When an adversarially manipulated home visit AI assessment misclassifies an unsafe home environment as safe — suppressing visible evidence of a heating system failure, structural hazard, inadequate food storage, or physical abuse indicator — and a child is placed in or returned to that home on the basis of the AI-assisted safety assessment, the child welfare agency faces legal exposure under several distinct legal frameworks that operate concurrently. Under 42 USC §1983 (Civil Rights Act, Section 1983), children in state custody have a constitutionally protected liberty interest in reasonable safety (Youngberg v. Romeo, 457 US 307), and a child welfare agency that places a child in a dangerous home on the basis of an AI safety assessment without adequate safeguards against adversarial manipulation of the AI’s photograph inputs may face Section 1983 liability for deliberate indifference to the child’s constitutional right to safe placement. The deliberate indifference standard in Section 1983 claims against child welfare agencies does not require proof of subjective awareness of the specific adversarial manipulation mechanism — systemic failure to implement basic image integrity verification in an AI-assisted child safety determination system may satisfy the deliberate indifference standard if the agency was aware that AI-assisted child welfare assessment platforms present adversarial image manipulation risks and failed to implement any pre-scan integrity control.

Title IV-E (42 USC §670 et seq.) requires that child welfare agencies maintain case review systems with periodic reviews of each child in foster care to determine whether the child’s placement continues to be appropriate and in the best interests of the child, and that case plans include a description of the services to be provided to ensure the child’s health and safety (42 USC §675(1)(C)). A Title IV-E case plan that incorporates an AI home safety assessment compromised by adversarial photograph manipulation does not satisfy the case plan health and safety documentation requirement, creating a Title IV-E compliance failure that can be identified through the federal Child and Family Services Review (CFSR) process — and that can result in penalty determinations requiring states to develop Program Improvement Plans (PIPs) and potentially face financial penalties under 42 USC §1320a-2a. Beyond federal civil exposure, state tort law negligence claims by the injured child (through a guardian ad litem) and the child’s family against the child welfare agency, the AI platform vendor, and the home visit caseworker create concurrent state court litigation exposure — with expert testimony about the foreseeable adversarial manipulation risk of the AI-assisted home visit assessment platform and the agency’s failure to implement available pre-scan safeguards directly relevant to the duty of care analysis under the applicable state negligence standard.

How should an SSA DDS office or Maximus DDS contractor respond when it discovers that its medical evidence AI processing pipeline was exposed to adversarial RFC document scan manipulation?

When an SSA DDS office or Maximus DDS contractor discovers that its AI medical evidence processing pipeline was exposed to adversarial RFC document scan manipulation — either through a Glyphward post-hoc audit identifying previously processed images with scores above the adversarial threshold, a caseworker identifying an implausible AI RFC extraction inconsistent with the overall medical record, or a claimant’s representative or ALJ identifying an AI RFC extraction that contradicts the physician’s narrative report — the response must address three concurrent obligations simultaneously. First, the DDS must immediately notify SSA Central Office through the applicable SSA quality assurance reporting channel under SSA’s DDS Performance Standards and Quality Assurance System (20 CFR Part 404, Subpart Q), because SSA’s programme integrity framework requires that known systematic processing errors affecting adjudication accuracy be reported and that affected cases be identified and reviewed. The notification to SSA Central Office should include a preliminary estimate of the number of cases potentially affected — determined by identifying the date range during which the adversarial image manipulation was active in the pipeline and cross-referencing with the volume of RFC document scans processed during that period — and an initial characterisation of whether the manipulation resulted in systematically more favourable or more unfavourable RFC extractions.

Second, the DDS and its legal counsel must assess the criminal referral obligations under 42 USC §408 (SSA fraud) and 18 USC §1001 (false statements to federal agencies): if the adversarial RFC document manipulation was introduced by an identifiable party — a claimant, a claimant’s representative, a treating physician, or a medical evidence submission service — the DDS has an obligation to refer the matter to SSA OIG for criminal investigation. SSA OIG maintains a dedicated programme integrity unit for disability fraud investigations, and the referral of a known adversarial manipulation case — supported by Glyphward scan evidence showing the specific images that exceeded the adversarial threshold and the case identifiers associated with those images — provides the evidentiary foundation for an SSA OIG investigation that can be conducted in parallel with the DDS case review. Third, for cases where the adversarial RFC manipulation resulted in an allowance of disability benefits to a claimant who would have been denied under the Grid Rules based on the physician’s actual RFC documentation, the DDS must initiate a continuing disability review (CDR) under 20 CFR §404.1590 to determine whether the current beneficiary meets the disability standard on the actual medical evidence — the adversarial AI manipulation of the original RFC extraction does not by itself constitute a basis for cessation of benefits, but it requires the DDS to conduct an independent review of the medical evidence using the original physician documentation rather than the AI-extracted RFC value that was the product of adversarial manipulation. Implementing Glyphward pre-scan prospectively — and retaining the scan audit records in the DDS case file under the SSA records retention schedule — prevents this post-hoc remediation scenario entirely.

Further reading