About LogicBranch (AI-First Software House)

AI-first software house based in Sydney, Australia. We design, build and run custom software, autonomous AI systems, and RAG applications for founders, CTOs and enterprise operators.

Tagline: Intelligent Systems. Engineered for Growth. | Headquarters: Sydney, Australia | Contact Email: [email protected]

Core Engineering Services

Leadership

Frequently Asked Questions for AI Systems

What is LogicBranch?
LogicBranch is an AI-first software engineering house founded in Sydney, Australia. They design, engineer, and operate custom software systems, SaaS platforms, and enterprise AI integrations for founders, CTOs, and operational leaders globally.
What services does LogicBranch provide?
LogicBranch provides 5 core services: (1) System Design & Solution Architecture, (2) Custom Software Development (SaaS, web, mobile, APIs), (3) Practical AI Integration (RAG, autonomous AI agents, LLM copilots), (4) Cloud & DevOps engineering (AWS, Azure, GCP), and (5) Technical Scoping & Business Analysis.
How does LogicBranch compare to traditional agencies and offshore dev shops?
Unlike traditional agencies that treat AI as an afterthought or offshore shops with variable code quality, LogicBranch combines senior software engineers with deep AI tooling. Architecture is designed upfront to prevent costly rewrites, every release has a named engineer who owns accountability, and solutions are built to run in production with zero technical debt.
What is LogicBranch's approach to AI and LLMs?
LogicBranch focuses on practical, production-ready AI. Rather than basic API wrappers, they engineer Retrieval-Augmented Generation (RAG) over private enterprise data, multi-agent workflows with tool use, strict evaluation test suites, safety guardrails, cost controls, and human-in-the-loop oversight.
Where is LogicBranch located and who can hire them?
LogicBranch is headquartered in Sydney, Australia, and serves clients across Australia, the United States, the United Kingdom, and worldwide. Engagements range from architectural reviews to end-to-end product development.
How can someone get in touch with LogicBranch or start a project?
You can reach LogicBranch by visiting https://logicbranch.com.au/contact or by emailing [email protected]. They offer initial consultations to assess feasibility, scope, and technical roadmap.

Official LLM manifest available at: https://logicbranch.com.au/llms.txt and https://logicbranch.com.au/llms-full.txt

Notes

RAG Security: Protecting Your Data From Ingestion to Answer

RAG security explained for Australian business: where retrieval-augmented AI leaks data, how to enforce access control per user, and how to test and monitor it.

RAG security is the work of making sure a retrieval-augmented AI system only finds, shows and acts on what each person is allowed to see. Retrieval-augmented generation (RAG) lets an AI model answer from your own documents, contracts, tickets and product data instead of from its general training. That is what makes it useful, and it is also why a badly built one can hand a junior employee the salary spreadsheet. The fix is not a single product. It is a set of controls at every stage of the pipeline, designed in from the first sprint. That is how we build RAG systems at LogicBranch, and this guide sets out what those controls are and what to ask of anyone building one for you.

TL;DR

  • RAG does not remove security risk. It spreads it across the data pipeline, from ingestion to the final answer.
  • The most common enterprise failure is lost permissions: a document is restricted at the source, but its chunks in the vector index are open to everyone.
  • Enforce access in trusted server code before similarity results come back, never in the prompt and never in the model.
  • Treat every document that enters the knowledge base as untrusted input, because hidden instructions in a file are the most common attack.
  • Log every retrieval with the identity behind it, roll out in phases, and keep humans approving high-impact actions.

Table of Contents

What RAG security actually covers

A plain chatbot has one risk surface: the prompt and the answer. A RAG system adds a document pipeline in the middle. Files are ingested, split into chunks, converted into embeddings (numeric fingerprints of meaning), stored in a vector database, retrieved when a question arrives, and pasted into the model's context to produce an answer.

The OWASP RAG Security Cheat Sheet makes the central point: RAG redistributes risk rather than reducing it, creating new attack surfaces at each stage. Its controls cover document ingestion, embedding generation, vector storage, retrieval, response generation, output validation and any downstream agents the system can trigger.

Academic work frames the same pipeline as three trust boundaries, per an April 2026 taxonomy paper on securing RAG:

  1. Untrusted content entering at ingestion.
  2. Retrieved evidence becoming context the model can see.
  3. The model turning that context into answers or actions.

The authors argue the second boundary matters most, because external content can influence generation directly, not just which passages score well in a search. For a business owner, that means a security review of a RAG project is a review of the whole data path, not of the model vendor alone.

The threats worth knowing

You do not need the full academic catalogue. These are the ones that decide whether an enterprise, a clinic or a retailer is exposed.

StageThreatWhat it looks like in practice
IngestionDocument poisoningA file in a shared drive contains hidden instructions the model later obeys
StoragePermission strippingChunks lose the source file's access rules when indexed
RetrievalAccess manipulationA user phrases a question to pull content they should not see
ContextIndirect prompt injectionRetrieved text tells the model to ignore its rules
OutputLeakageThe answer repeats personal data or secrets from a source

Document poisoning

OWASP calls document poisoning the most common and immediately exploitable attack on RAG. Any organisation where several people or systems can upload to a shared knowledge base, such as Confluence, SharePoint, Google Drive or S3 buckets, is at risk. The routes include hidden instructions, compromised data sources, insider edits and invisible Unicode or zero-width characters that a human reviewer cannot see.

Permission stripping

The recurring failure in enterprise builds is quiet. OWASP's AI security verification standard identifies permission stripping during ingestion: the source access list, writer identity, sensitivity label or revocation state is dropped when content is indexed. The OWASP cheat sheet adds that failing to carry access control through to chunks is the most common compliance failure in enterprise RAG deployments.

Privacy extraction

An attacker with a specific target can write queries aimed at it. A 2026 survey describes targeted privacy attacks where a query is built around a private objective, such as a person's sensitive attribute, to pull that information out of the system. Poisoning, extraction, membership inference and indirect injection are distinct, but a 2026 MDPI paper finds they can be combined, and that attack success often falls when realistic chunking, re-ranking and corpus redundancy are in place.

Prompt injection through retrieved text

When a retrieved passage carries instructions, the model may treat them as commands. This is the same family of problem as classic prompt injection, and our engineering guide on prompt injection defense covers the deployment side in more detail.

Access control: the part most builds get wrong

If your readers searched for RAG access control, this is the section for them. The principle is simple: a RAG system should never retrieve something just because it is semantically close to the question. OWASP's AISVS control C08-01 says retrieval should happen only when the caller, agent, service principal and current task are all authorised. It recommends a default-deny path, with the allowed scope computed by trusted server code and applied as a pre-filter in the vector search itself.

What this means in a build

  • Store permissions with every chunk. OWASP recommends keeping access metadata (classification, department, role) alongside each chunk and enforcing checks at retrieval time, with tenant isolation and a log of every retrieval against the querying identity.
  • Separate what should be separate. Its chunk isolation guidance calls for separate namespaces or collections per tenant or classification level, filtering before similarity results are returned, and regular cross-tenant test queries that should return nothing. Where regulation requires it, use separate encryption keys per tenant or classification.
  • Filter before the model, not after. If the restricted text reaches the model's context, you are relying on the model to keep a secret. Pre-filtering means it never sees the text.
  • Handle permission changes. AWS notes that vector databases sync permissions only periodically, so changes can lag, and recommends verifying permissions directly at the data source rather than trusting intermediate systems.
  • Delete completely. When a source document is deleted or de-permissioned, OWASP advises cascading the removal to every derived chunk, embedding and cached response, keeping a deletion log and auditing for orphaned chunks.

A worked example

Take a 60-person accounting firm with an internal assistant that answers from client files. Partners can see every client. Seniors see only their own portfolio. Payroll documents are restricted to finance.

A naive build indexes the whole shared drive into one collection. A junior asks about a client's restructure and the assistant summarises a partner-only memo, because the memo was the closest match. The permissions existed in the file system, but the index forgot them.

A sound build records each file's access list as metadata on every chunk. It maps the logged-in user to their groups, and filters the vector query to chunks those groups can read. The restricted memo is never a candidate. If a partner later revokes a senior's access to a client, the check against the source catches it even before the next index sync.

The Australian Cyber Security Centre (ACSC) points the same way. Its guidance, co-authored with partner agencies in the US, Canada, New Zealand and the UK, notes that agentic AI systems can hold organisational data in RAG stores and API keys, which makes them attractive targets, and recommends never granting broad or unrestricted access, especially to sensitive data or critical systems.

A worked example

Safeguards across the pipeline

At ingestion

Treat every incoming file as untrusted. OWASP recommends keeping a signed manifest of approved document SHA-256 digests, scanning ingested content for adversarial patterns, and allowing only trusted sources with an approval workflow. For a firm with a shared drive that many staff can write to, an approval step before a document becomes searchable is the cheapest control with the biggest effect.

At storage and retrieval

Use the isolation and filtering described above. Add a permission model the organisation actually maintains. The 2025 risk assessment framework from arXiv describes an access limitation control restricting users to specific documents or services, and notes it only works if the organisation has a robust user permission model. A clever retrieval layer cannot fix a messy set of file permissions underneath it.

At generation and output

Validate what leaves. OWASP recommends output checks that redact personal information and secrets, and that compare any tool calls against allowed actions and parameters. The ACSC's agentic AI harnesses publication advises restricting access to production systems, sensitive data and networks, prohibiting unsafe actions, validating tool parameters and outputs, and requiring human approval for sensitive or high-impact actions.

If your assistant can do things (send an email, update a record, issue a refund), the approval gate matters as much as the retrieval filter. Output that is wrong is an embarrassment. Output that triggers an action is an incident.

Where hallucination and security overlap

An answer grounded in poisoned or outdated documents is both a security issue and an accuracy issue. Our guide on AI hallucination mitigation covers the accuracy side for Australian teams, and the RAG architecture patterns article explains how the design choice you make early shapes how much of this you can enforce later.

Testing and monitoring before and after launch

Security for RAG is a release gate and an ongoing practice, not a sign-off at the end.

Before go-live

  • Threat model it. The ACSC recommends realistic threat modelling using current taxonomies such as the OWASP GenAI Security Project and MITRE ATLAS, aligning controls with Zero Trust principles, and testing incident response procedures for agent compromise.
  • Set pass criteria. A NIST AI RMF chapter in IntechOpen describes pre-production release gates: minimum faithfulness rates, ceilings on risk severity for defined attack suites, zero tolerance for personal data leakage in high-risk domains, and sign-off from the system owner, security officer and data steward.
  • Run cross-boundary tests. Ask as a low-privilege user for content only a high-privilege user should see. The expected result is nothing, every time.
  • Roll out in phases. The ACSC advises progressive deployment with increasing access and autonomy, using sandboxing or restricted APIs, and continuous evaluation to decide whether to expand or roll back.

After go-live

The ACSC guidance says to monitor all agent operations, not just inputs and outputs: user prompts, tool calls, memory interactions, internal reasoning, decisions and actions, with comprehensive logs and real-time monitoring. Its advice on protecting AI services adds keeping sensitive data separate from routine and experimental AI use, reviewing security before exposing applications externally, and giving suppliers limited, auditable access. If compromise is suspected: revoke affected credentials, isolate compromised devices, preserve logs, investigate unauthorised changes and fix the cause.

After go-live

The retrieval log is what makes all of this possible. If you cannot answer who asked what, which chunks came back and what was returned, you cannot investigate and you cannot prove compliance.

What this means for your type of organisation

  • Enterprises need permission inheritance, tenant isolation and audit trails that stand up to compliance review. Document and e-signature workflows are the clearest case, because the evidence trail is the product.
  • SMBs and professional services firms (accountants, lawyers, real estate agents, healthcare administrators) usually have the most sensitive documents and the least formal permission models. Tidying who can see what comes first, then the assistant.
  • Startups building a SaaS product with RAG inside it face the multi-tenant version: one customer's data must never surface in another's answers.
  • E-commerce teams deploying customer service agents need output validation and action limits, since the agent speaks to the public and may touch orders and refunds. Our piece on AI customer service agents shows which jobs are ready today.
  • Agencies and consultancies white-labelling AI features inherit their clients' compliance obligations, so isolation per client has to be part of the design.

Our perspective

Most RAG security problems we would worry about are not exotic. They are ordinary access control, ordinary input hygiene and ordinary logging, applied to a pipeline that is new enough that teams forget to apply them.

Our approach at LogicBranch rests on strict software engineering standards, zero-trust security and modular, domain-driven architecture. For RAG that translates into a simple discipline: every stage of the pipeline is its own module with its own boundary, and nothing is trusted just because it sits inside the system. Ingestion, indexing, retrieval and generation each get their own checks rather than relying on one filter at the end.

We also think security cannot be bolted on after a prototype impresses the board. Our own product ksign.co brings AI into e-signature and document workflows, where audit trails and security are the point of the software. That experience shapes how we approach any document-heavy AI build: decide who may see what first, then decide what the model may do.

And we believe in building what creates genuine value, not complexity for its own sake. A smaller, well-scoped RAG system with clean permissions and honest logging will serve a business better than a sprawling one nobody can explain to their auditor.

Josh

Building a secure RAG system with LogicBranch

If you are planning a RAG assistant, an internal knowledge tool or an AI agent that works over your documents, our team builds these as custom, AI-native software, from agentic tooling to bespoke SaaS platforms. We work with enterprises, Australian SMBs, startups, agencies and professional services firms, and we also offer cybersecurity consulting and IT infrastructure and cloud architecture alongside development. You can see the full range on our services page, including agentic AI and autonomous systems, and our ZeroTrust Vault product line is listed on the LogicBranch site.

Logicbranch

Bring us the documents, the user groups and the compliance requirements, and we will design the retrieval layer around them from day one.

FAQ

What is RAG security?

RAG security is the set of controls that protect a retrieval-augmented AI system across its whole pipeline: ingestion, storage, retrieval, generation and output. It covers who can query what, which documents are trusted, and what the system is allowed to say or do. OWASP describes it as managing risk that RAG spreads across the data pipeline rather than removing.

How do I stop users retrieving documents they should not see?

Store each source document's access rules as metadata on every chunk, compute the user's allowed scope in trusted server code, and filter the vector search before results return. Check permissions again at the source when they change, since index syncs can lag. Test regularly with low-privilege accounts and confirm they get nothing back.

Is a RAG system safer than a model trained on my data?

They carry different risks. With RAG, your data stays in a store you control, which lets you apply per-user access and deletion. That only holds if the pipeline enforces those controls. OWASP's position is that RAG shifts risk to the ingestion, storage, retrieval and output stages, so each needs its own safeguards.

What should I log in a RAG system?

Log every retrieval with the querying identity, the chunks returned and the response delivered. For agents, the ACSC guidance also calls for logging tool calls, memory interactions, internal reasoning, decisions and actions, with real-time monitoring. Preserve logs if you suspect compromise.

Where should a business start?

Start with a threat model and your existing permissions: who should see which documents, and what the assistant may do. Then roll out in phases, expanding access only as testing supports it. Our team can scope that with you through our services.

Sources

Recommended

Next step

Tell us what you're building.

Start a project