In-House LLM Governance
If you’re building, fine-tuning, or deploying AI models inside your organisation, the governance challenge is fundamentally different from using third-party tools. This guide covers the security, privacy, and governance best practices you need to build into the foundations — not bolt on afterwards.
When you use ChatGPT or Copilot, you’re a consumer of someone else’s AI. When you build, fine-tune, or deploy your own models, you become the AI provider. That means you inherit the responsibilities that come with it: data handling, bias management, security, access control, output quality, and regulatory compliance. The stakes — and the governance requirements — are significantly higher.
When Does This Apply to You?
You need in-house LLM governance if your organisation is doing any of the following:
Running open-source models (LLaMA, Mistral, Phi, Gemma) on your own infrastructure. Fine-tuning foundation models on your proprietary data. Building RAG (Retrieval-Augmented Generation) systems connected to internal knowledge bases. Deploying AI models via Azure OpenAI Service, AWS Bedrock, or Google Vertex AI within your own tenant. Creating custom AI agents or copilots that interact with internal systems. Building AI features into products you sell to customers.
If any of those describe your situation, the guidance for using third-party consumer AI tools is necessary but insufficient. You need a governance framework built for AI builders, not just AI users.
The Seven Pillars of In-House LLM Governance
1. Data Governance — What Goes Into the Model
The data you use to train, fine-tune, or ground your model is the single biggest governance risk. Get this wrong and everything downstream is compromised.
Training data provenance: Document where every dataset came from, what licence it carries, and whether it contains personal information under the Australian Privacy Act. If you’re fine-tuning on customer data, employee data, or health records, you need explicit legal authority to use it for that purpose. “We collected it” is not the same as “we have the right to train a model on it.”
Data classification: Before any data touches a model, classify it. Public, internal, confidential, restricted. Your model training pipeline should enforce classification boundaries — restricted data should never enter a training pipeline without explicit, documented approval from your data governance team.
PII handling: Implement automated PII detection and redaction in your data pipeline. This isn’t optional — it’s a Privacy Act requirement if personal information is involved. Tools like Microsoft Presidio, AWS Comprehend, or open-source libraries like spaCy with custom NER models can help, but they need to be validated against Australian data patterns (Medicare numbers, TFNs, Australian phone formats, ABNs).
Data retention and deletion: Define how long training data is retained, how model weights are versioned, and how you would respond to a deletion request that affects data already embedded in model weights. This is an unsolved problem in the industry — document your approach and its limitations honestly.
2. Model Security — Protecting the Infrastructure
Your LLM infrastructure is a high-value target. It contains your proprietary data, your intellectual property, and potentially your customers’ information.
Access control: Who can access model endpoints? Who can modify model configurations? Who can retrain or fine-tune? Implement role-based access control (RBAC) with the principle of least privilege. Model inference endpoints should not use the same credentials as model training pipelines.
Network isolation: Model inference should run in isolated network segments. If your RAG system connects to internal databases, those connections need the same security controls as any other database access — encrypted in transit, authenticated, logged, and monitored.
Prompt injection defence: If your model accepts user input (internal or external), it is vulnerable to prompt injection attacks. Implement input validation, output filtering, and system prompt protection. Test your defences regularly. This is an active area of security research — stay current.
Model supply chain: If you’re using open-source models, verify the source. Models downloaded from Hugging Face or other repositories can be tampered with. Verify checksums. Scan for known vulnerabilities. Treat model files with the same suspicion you’d treat any executable code.
Logging and monitoring: Log all inference requests and responses. Monitor for unusual patterns — high-volume extraction attempts, prompt injection signatures, access from unexpected locations. Your SIEM should treat your LLM endpoints as critical infrastructure.
3. Output Governance — What Comes Out of the Model
You are responsible for what your model says. Unlike using ChatGPT where OpenAI bears some responsibility for the model’s behaviour, when you deploy your own model, the buck stops with you.
Output filtering: Implement guardrails that prevent your model from generating harmful, biased, or inappropriate content. This is especially critical if the model interacts with customers or the public. Azure AI Content Safety, Guardrails AI, or custom filtering layers are essential — not optional.
Hallucination management: Your model will hallucinate. Design your system to minimise the impact: use RAG to ground responses in verified documents, implement confidence scoring, and always surface source citations where possible. For high-stakes use cases (health, legal, financial), implement human-in-the-loop review before outputs reach end users.
Bias testing: Test your model for bias across protected characteristics under Australian law. If your model makes or influences decisions about people — recruitment, lending, insurance, service eligibility — bias testing is not optional. Document your methodology and results.
4. Deployment Governance — How the Model Reaches Users
Environment separation: Development, staging, and production environments must be separate. Models should go through a defined promotion process with testing gates at each stage. Never deploy a model to production directly from a notebook.
Version control: Every model version should be traceable — what data it was trained on, what parameters were used, when it was deployed, and who approved the deployment. If something goes wrong, you need to be able to roll back to a known-good version immediately.
A/B testing and canary deployments: Don’t switch all users to a new model version at once. Use canary deployments to test with a small percentage of traffic first. Monitor quality metrics before full rollout.
Kill switch: Every deployed model needs a kill switch. If your model starts producing dangerous, biased, or incorrect outputs, you need to be able to disable it within minutes, not hours. Document who has authority to pull the switch and under what circumstances.
5. Compliance & Regulatory Alignment
Australian Privacy Act: If your model processes personal information, you must comply with the Australian Privacy Principles (APPs). This includes APP 1 (open and transparent management), APP 3 (collection), APP 6 (use and disclosure), APP 8 (cross-border disclosure if using overseas compute), and APP 11 (security). The upcoming automated decision-making disclosure requirements (expected December 2026) will require you to disclose when AI is involved in decisions that significantly affect individuals.
AI6 Guidance: The Guidance for AI Adoption provides a voluntary framework but is increasingly referenced by regulators. Alignment with AI6 demonstrates good faith governance, which matters if something goes wrong.
Industry-specific regulation: Health (TGA if your model is a medical device or clinical decision support), financial services (ASIC, APRA prudential standards), legal (professional conduct rules), education (emerging children’s AI safety codes). Know your sector’s requirements.
International frameworks: If your model processes data from EU residents, GDPR applies. If it processes data from US persons in certain sectors, US regulations may apply. Map your data flows and understand your jurisdictional obligations.
6. Governance Structure & Accountability
AI governance committee: Establish a cross-functional group that includes legal, compliance, IT security, data governance, and business stakeholders. This group approves new model deployments, reviews incidents, and sets policy.
Responsible AI roles: Assign clear accountability. Who is the model owner? Who approves training data? Who signs off on deployment? Who handles incidents? These shouldn’t all be the same person.
Documentation: Maintain model cards for every deployed model documenting: purpose, training data, known limitations, bias testing results, deployment environment, and contact person. This isn’t bureaucracy — it’s the first thing a regulator or auditor will ask for.
Incident response: Have a documented AI incident response plan. What happens if your model produces harmful output? What if training data is compromised? What if a prompt injection attack succeeds? Your general IT incident response plan probably doesn’t cover these scenarios adequately.
7. The Data Sanitisation Layer — Sandbox Pattern
One of the most practical governance patterns for organisations that need to use external AI services while protecting confidential data is the data sanitisation sandbox.
The concept: before any employee query leaves your network and reaches an external AI tool, it passes through a sanitisation layer that detects and replaces confidential information with randomised tokens — similar to how a security authenticator generates temporary codes. The external AI processes the sanitised query and returns a response. The sanitisation layer then re-maps the tokens back to the original values before presenting the response to the employee.
How it works:
An employee types: “Draft a contract for Acme Corp, ABN 12 345 678 901, for $450,000 covering our Project Phoenix deliverables.”
The sanitisation layer intercepts and replaces: “Draft a contract for [COMPANY_7x9k], ABN [ABN_3m2p], for [AMOUNT_8n4q] covering our [PROJECT_2j6r] deliverables.”
The external AI drafts the contract with tokenised placeholders. The response returns through the sanitisation layer, which re-maps the tokens: [COMPANY_7x9k] → Acme Corp, [ABN_3m2p] → 12 345 678 901, and so on.
The employee sees a complete, contextual response with their real data — but the external AI provider never saw any of it.
Implementation considerations: This requires a proxy layer between your users and external AI endpoints. Azure API Management, a custom middleware service, or dedicated products like Private AI or Protecto can provide this. The token mapping needs to be session-scoped (tokens expire after the session, like TOTP codes), stored securely, and never logged in plain text. Context preservation is the main challenge — some queries depend on the meaning of the replaced data (e.g., a medical condition name can’t be tokenised without losing clinical context). Design your entity recognition rules carefully and allow users to flag when sanitisation has broken the query context.
This pattern doesn’t eliminate risk — you still need governance around what types of queries are appropriate for external AI — but it dramatically reduces the data exposure risk while still giving employees access to powerful AI capabilities.
In-house LLM governance is complex and evolving. This guide covers the foundations, but your implementation will depend on your organisation’s specific context, industry, risk appetite, and regulatory obligations. Use this as a kick-off framework and work with your legal, compliance, IT security, and data governance teams to build a programme that fits your needs. Our governance templates and agentic use case starter kits can accelerate that process.
Assess Your In-House AI Readiness
Copy this prompt into any AI tool. Fill in the [BRACKETS] with your details.
You are evaluating whether [INSERT COMPANY NAME] should build in-house AI capability versus continuing to use third-party AI services. Using the 7 governance pillars (data governance, model security, output governance, deployment governance, compliance, governance structure, data sanitisation sandbox), assess our readiness across each pillar. For each: rate our current maturity (1-5), identify gaps, and recommend whether to build, buy, or hybrid. Consider our industry ([INSERT INDUSTRY]), size ([INSERT SIZE]), regulatory environment, and data sensitivity. Format as a strategic assessment with executive summary.
Copy
Works with ChatGPT, Claude, Gemini, Copilot, or any AI tool.
Browse all prompts in the Content Portal →