Skip to content

Commit 492c1fa

Browse files
committed
Include bandit as a community analyzer
Bandit is a popular Python SAST which now supports generating reports in SARIF output. Would be nice to include as a community analyzer here. https://github.com/PyCQA/bandit Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
1 parent 13078d4 commit 492c1fa

File tree

167 files changed

+2726
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+2726
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Analyzer Profile
2+
category = "sec"
3+
name = "A security linter from PyCQA"
4+
shortcode = "bandit"
5+
status = "active"
6+
tool_latest_version = "1.7.8"
7+
description = " Bandit is a tool designed to find common security issues in Python code."
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version = 1
2+
3+
[[analyzers]]
4+
name = "bandit"
5+
type = "community"

analyzers/bandit/.deepsource/analyzer/logo.svg

Lines changed: 51 additions & 0 deletions
Loading

analyzers/bandit/.deepsource/analyzer/silencers.json

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title = "Error processing rule on the template"
2+
verbose_name = "E0002"
3+
severity = "major"
4+
category = "antipattern"
5+
weight = 70
6+
tags = ["base", "rule"]
7+
description = '''
8+
Errors found when processing a rule on the template
9+
10+
### References:
11+
[CloudFormation Python Lint](https://github.com/aws-cloudformation/cfn-python-lint)
12+
'''
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title = "Basic cloudformation template configuration"
2+
verbose_name = "E1001"
3+
severity = "major"
4+
category = "antipattern"
5+
weight = 70
6+
tags = ["base"]
7+
description = '''
8+
Making sure the basic CloudFormation template components are properly configured
9+
10+
### References:
11+
[CloudFormation Python Lint](https://github.com/aws-cloudformation/cfn-python-lint)
12+
'''
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title = "Template size limit"
2+
verbose_name = "E1002"
3+
severity = "major"
4+
category = "antipattern"
5+
weight = 70
6+
tags = ["limits"]
7+
description = '''
8+
Check the size of the template is less than the upper limit
9+
10+
### References:
11+
[CloudFormation Limits](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html)
12+
'''
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title = "Template description limit"
2+
verbose_name = "E1003"
3+
severity = "major"
4+
category = "antipattern"
5+
weight = 70
6+
tags = ["description", "limits"]
7+
description = '''
8+
Check if the size of the template description is less than the upper limit
9+
10+
### References:
11+
[CloudFormation Limits](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html)
12+
'''
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title = "Template description can only be a string"
2+
verbose_name = "E1004"
3+
severity = "major"
4+
category = "antipattern"
5+
weight = 70
6+
tags = ["description"]
7+
description = '''
8+
Template description can only be a string
9+
10+
### References:
11+
[Template Description Structure](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-description-structure.html)
12+
'''
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
title = "Getatt validation of parameters"
2+
verbose_name = "E1010"
3+
severity = "major"
4+
category = "antipattern"
5+
weight = 70
6+
tags = ["functions", "getatt"]
7+
description = '''
8+
Validates that GetAtt parameters are to valid resources and properties of those resources
9+
10+
### References:
11+
[Intrinsic Function Reference Getatt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html)
12+
'''

0 commit comments

Comments
 (0)