Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow encrypted_ prefix to be marked as encrypted in SQL detections #283

Closed
cfabianski opened this issue Dec 17, 2022 · 0 comments · Fixed by #302
Closed

Allow encrypted_ prefix to be marked as encrypted in SQL detections #283

cfabianski opened this issue Dec 17, 2022 · 0 comments · Fixed by #302
Assignees
Labels
enhancement New feature or request

Comments

@cfabianski
Copy link
Collaborator

detect_encrypted_ruby_class_properties is the verifier we use to mark a SQL detection as encrypted.

We could add this new processor here that would automatically flag the fields that are prefixed by encrypted_ as encrypted.

package bearer.db_encrypted

 import future.keywords

 default encrypted := false

 encrypted = true {
     startswith(lower(input.target.value.field_name),  "encrypted_")
 }

 verified_by := [
     {
         "detector": "db_encrypted",
     }
@cfabianski cfabianski added the enhancement New feature or request label Dec 17, 2022
@spdawson spdawson self-assigned this Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants