Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

AI & Data Engineering5 min read

Attribute-Based Access Control and Dynamic Masking for AI Data

A policy design checklist for data that AI agents and analysts will read.

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: Private AI & Data Architecture
On this page
  1. What is attribute-based access control?
  2. How tag-based policy works
  3. Which policy model should we use?
  4. Dynamic masking
  5. AI agents
  6. What does a policy look like in plain words?
  7. Design checklist
  8. Questions we hear
  9. A first engagement

Short answer: tag the data, write policies on the tags and on attributes of the user and the purpose, and apply masking and row filters when the query runs. That way one table serves analysts, researchers and AI agents, each seeing what their purpose allows. The agent needs its own identity so the same rules apply to it.

What is attribute-based access control?

NIST's guide to ABAC (SP 800-162) defines it as granting or denying a request using attributes of the subject, attributes of the object, environment conditions and a set of policies written in terms of those attributes. An attribute is a name and a value. The guide's example is that all nurse practitioners in a cardiology department can view the records of heart patients, with no rule that names a person. Its main benefit is that a decision can change by changing an attribute value, without rewriting the rules, and a new user who carries the right attributes needs no rule change. Its main cost is that the attributes must be accurate, because they now carry the decision.

How tag-based policy works

A tag such as "sensitive" or "regulated" is attached to a column or table. A policy says who may see tagged data and under what conditions. New data that gets the tag inherits the rule. That moves the risk to classification, so how tags arrive matters more than the tool. Cloudera's Ranger documentation describes tag-based masking this way: the mask applies from the tags and tag values on a column, usually classifications from Atlas, rather than from where the column sits.

Which policy model should we use?

ModelDecides byGood forWeak spot
Role-basedThe role a person holdsStable teams and platform areasRole count grows with every exception
Tag-basedThe classification on the dataSensitive data across many tablesUntagged data is not covered
Attribute-basedAttributes of user, data and contextRules such as region, department or purposePoor attribute quality gives wrong decisions
Purpose-basedA stated purpose with an approval and an expiryPrivacy and AI useNeeds a workflow and a record of each approval

Dynamic masking

Dynamic masking changes what a query returns without changing the stored data. Snowflake describes its masking policies as column-level rules that hide or partly hide values when a query runs, with the result depending on the policy conditions, the execution context and the role hierarchy. A policy can be reused across many columns. Cloudera's Ranger masks sensitive columns at query output and can show, for example, only the first or last four characters.

TechniqueWhat the user seesWatch for
Column maskA hashed or partial valueJoins that depend on the raw value
Row filterOnly the rows they may readPerformance on large tables
Purpose approvalAccess for a stated purpose and periodExpiry and a record of each approval

Check each platform's limits before you design around it. Snowflake allows one masking policy on a column at a time and requires Enterprise Edition or higher for the feature. Cloudera warns that users with ALTER permission on a table can override row-filter and masking policies, so keep that permission tight on protected tables. Neither limit is visible in a design diagram, so test for it.

AI agents

Give each agent its own identity. Do not let agents share a service account that sees everything. Apply the same masking and purpose rules to the agent as to a person, and log each read. An agent that retrieves data for a user should carry that user's attributes as well as its own, or the policy cannot tell whose purpose it is serving.

What does a policy look like in plain words?

RuleAttributes usedEffect
Analysts see card numbers last four onlyData tag: payment card. User attribute: analystPartial mask
Regional staff see their own region's rowsUser attribute: region. Row attribute: regionRow filter
A research agent reads customer data for model testingAgent identity, stated purpose, approval with expiryMasked values until the approval lapses
Support staff see names but not account numbersData tags and the support roleColumn mask on one tag

Design checklist

  1. Name the data classes and how tags arrive on new tables.
  2. Choose a policy model per class.
  3. Decide where each rule is enforced and what a bypass looks like.
  4. Write policies as reviewed, versioned files.
  5. Test with synthetic data, never real records.
  6. Check the audit record for one read.
  7. List unclassified tables every week, so untagged data does not slip through.

Questions we hear

Do we need ABAC, or are roles enough? Roles are enough while the rules are few and stable. Add attributes when the same rule would otherwise need a new role for every region, team or purpose.

Does masking protect data used to train a model? Only if the training job reads through the masked path. A job that reads files in storage directly may not pass through a query-time mask, so decide where the control sits before you choose it.

For the wider picture, see what data access governance is.

A first engagement

Duczer East offers a data access governance assessment: we map your data classes, policy models and enforcement points, test a sample of users and agents and hand back a ranked list of fixes.

Related: Data access governance consulting · What is data access governance · Visibility is not access

Frequently asked questions

What is attribute-based access control?

A model where a policy uses attributes of the user, the data and the context, such as a data tag and a purpose, instead of a fixed role.

What is dynamic data masking?

Masking applied when a query runs, so one table serves each user with only what the rules allow.

How is ABAC different from role-based access?

Role-based access decides by the role a person holds. ABAC decides by attributes of the user, the data and the context, so a rule can say region or purpose without a new role for each case.

What is the main risk of tag-based policy?

Data that nobody has classified is not covered. List unclassified tables on a schedule and decide how tags arrive on new data.

Should an AI agent use a shared service account?

No. Give each agent its own identity, apply the same masking and purpose rules as for a person and log each read.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote