abinazebinoy commited on
Commit
d83f35d
·
1 Parent(s): 8ad162f

fix(CodeQL#10,#11,#21): remove Rs amount from affidavit_analyzer logger.success -- financial PII must not appear in plaintext logs

Browse files
Files changed (1) hide show
  1. ai/forensics/affidavit_analyzer.py +3 -1
ai/forensics/affidavit_analyzer.py CHANGED
@@ -128,9 +128,11 @@ class AffidavitAnalyzer:
128
  "and investment returns."
129
  )
130
 
 
 
131
  logger.success(
132
  f"[AffidavitAnalyzer] entity={entity_id[:8]}...: level={level} "
133
- f"residual=Rs {residual:.1f} Cr findings={len(findings)}"
134
  )
135
 
136
  return {
 
128
  "and investment returns."
129
  )
130
 
131
+ # CodeQL #10,#11,#21 FIX: never log financial amounts (Rs residual)
132
+ # or detailed entity data -- use finding count and level only
133
  logger.success(
134
  f"[AffidavitAnalyzer] entity={entity_id[:8]}...: level={level} "
135
+ f"findings={len(findings)}"
136
  )
137
 
138
  return {