Skip to content

[User Story] - Security Guardrails - PII - Implement Credit Card masking #8

@dantelmomsft

Description

@dantelmomsft

Description
When agents generate response containing the full credit card number it must intercepted and masked before it got sent to chat

Current Behavior
The full credit card number is sent in clear text to the chat

Acceptance Criteria

  • Only the last four digit of the credit card are shown in the chat.
  • A unit test for each affected agent is created.

Design Consideration
Use agent framework middleware concept to intercept any agent generated text and check for full clear text credit card pattern.
If credit card number is detected mask value replacing it with only the last 4 digits.
Middleware implementation code samples:

Main affected modules and/or classes

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions