Hello KwangJe Cho,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having Credential Detection Gaps in Azure Language Service vs. CredScan.
For clarifications and to regarding some core questions:
Is Azure Language planning to expand credential detection?
No public roadmap, and model design makes parity with CredScan unlikely.
Can I add custom regex/rules to Azure Language PII detection?
Absolutely not. The model is fixed.
Why were 19/46 secrets missed?
Because Azure Language is not engineered for secret detection or pattern scanning.
How do I achieve CredScan‑level coverage?
You cannot do it with Azure Language alone. You must combine CredScan + your own regex + Azure Language PII.
Can entity Synonyms help detect tokens or secrets?
No. They have zero effect on secret detection.
With the above clarifications and by practical, Azure AI Language provides fixed ML‑ and pattern‑based PII detection and cannot accept custom regex, perform secret scanning, or replace security tools such as CredScan. Its models operate “as‑is” with no rule injection or credential‑level guarantees, as shown in Microsoft’s documentation:
- Azure Language Overview - https://language.cognitive.azure.com/
- Language Detection & PII Model Constraints - https://learn.microsoft.com/en-us/azure/ai-services/language-service/language-detection/overview
To achieve reliable protection, run CredScan first to capture all keys, tokens, certificates, and connection strings, then apply your custom regex rules for organization‑specific secret formats, and finally use Azure AI Language strictly for traditional PII like names and emails. This layered approach maximizes recall, minimizes false positives, and ensures each component performs the task it was built for:
- Microsoft CredScan Documentation - https://learn.microsoft.com/en-us/azure/devops/repos/security/credential-scanning
- Azure AI Language PII Detection - https://learn.microsoft.com/en-us/azure/ai-services/language-service/personally-identifiable-information/overview
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.