You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run a check which uses DetectSecrets e.g. ecs_task_definitions_no_environment_secrets on a resource with potential secrets. The check will report the line number where the potential secret was found.
Prowler's ecs_task_definitions_no_environment_secrets metadata states:
If a secret is detected, the line number shown in the finding matches with the environment variable Name attribute starting to count at the environment key from the ECS Task Definition in JSON format.
Given the following example the key environment of a AWS ECS task definition in json format which is shown in AWS console as follows:
If the third entry of the environment key of the task definition contains a potential secret, the check would indicate line number four. Why is it so? Because the json that prowler is passing to DetectSecrets is transformed as follows:
Steps to Reproduce
Run a check which uses DetectSecrets e.g.
ecs_task_definitions_no_environment_secrets
on a resource with potential secrets. The check will report the line number where the potential secret was found.Prowler's
ecs_task_definitions_no_environment_secrets
metadata states:Given the following example the key
environment
of a AWS ECS task definition in json format which is shown in AWS console as follows:If the third entry of the
environment
key of the task definition contains a potential secret, the check would indicate line number four. Why is it so? Because the json that prowler is passing to DetectSecrets is transformed as follows:Obviously, DetectSecrets counts the opening curly bracket from the json expression as line number one.
Expected behavior
I'd expect to read the correct line number in prowler's report.
Actual Result with Screenshots or Logs
doesn't matter
How did you install Prowler?
Cloning the repository from github.com (git clone)
Environment Resource
Docker container locally
OS used
MacOS
Prowler version
5.0.5
Pip version
doesn't matter
Context
No response
The text was updated successfully, but these errors were encountered: