-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
190 lines (164 loc) · 6.58 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
[tool.poetry]
name = "aura-security"
version = "2.2"
description = "Security auditing and static analysis for python"
authors = [
"Martin Carnogursky <admin@sourcecode.ai>"
]
repository = "https://github.com/SourceCode-AI/aura"
homepage = "https://aura.sourcecode.ai/"
documentation = "https://docs.aura.sourcecode.ai/"
readme = "README.rst"
license = "GPL-3.0-or-later"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
]
packages = [
{ include = "aura" },
{ include = "tests", format = "sdist" }
]
include = [
"README.rst",
"LICENSE.txt",
"aura/data/semantic_rules_schema.json",
"aura/data/aura_config.yaml",
"aura/data/rules.yara",
"aura/data/signatures.yaml"
]
[tool.poetry.dependencies]
python = "^3.10"
packaging = "~20.9"
python-magic = "~0.4.24"
click = "~8.0"
colorama = "~0.4.4"
requests = "~2.27"
tqdm = "~4.62"
"ruamel.yaml" = "~0.17"
jinja2 = "~3.0"
# TODO: make the following dependencies optional
python-tlsh = "~3.17.0"
prettyprinter = "~0.18"
chardet = "~4.0"
jsonschema = { version = "~4.4", optional = true }
GitPython = { version = "~3.1", optional = true }
defusedxml = { version = "~0.7", optional = true }
tomli = { version = "~2.0", optional = true }
yara-python = {version = "~4.0.5", optional = true}
networkx = {version = "~2.6", optional = true}
python-rapidjson = { version = "~1.5", optional = true }
psycopg2 = { version = "~2.9", optional = true }
SQLAlchemy = { version = "~1.4", optional = true, extras = ["mypy"] }
xxhash = { version = "~2.0", optional = true }
# Extras for collecting perfomance telemetry/traces
opentelemetry-api = { version = "~1.9", optional = true }
opentelemetry-sdk = { version = "~1.9", optional = true }
opentelemetry-exporter-jaeger = { version = "~1.9", optional = true }
# dev dependencies
responses = { version = "^0.17", optional = true }
tox = { version = "~3.24", optional = true }
pytest = { version = "~6.2", optional = true }
pytest-cov = { version = "~3.0", optional = true }
pytest-randomly = { version = "~3.11", optional = true }
sphinx = { version = "~4.3", optional = true }
sphinxcontrib-mermaid = { version = "~0.7", optional = true }
[tool.poetry.extras]
full = ["yara-python", "networkx", "cssselect", "GitPython", "python-rapidjson", "defusedxml", "jsonschema", "tomli", "psycopg2", "xxhash", "SQLAlchemy"]
telemetry = ["opentelemetry-api", "opentelemetry-sdk", "opentelemetry-exporter-jaeger"]
dev = ["responses", "tox", "pytest", "pytest-cov", "pytest-randomly", "sphinx", "sphinxcontrib-mermaid"]
[tool.poetry.dev-dependencies]
responses = "^0.17"
tox = "~3.24"
pytest = "~6.2"
pytest-cov = "~3.0"
pytest-randomly = "~3.11"
sphinx = "~4.3"
sphinxcontrib-mermaid = "~0.7"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/SourceCode-AI/aura/issues"
[tool.poetry.scripts]
aura = "aura.cli:main"
apip = "aura.apip:main"
# Aura entry points for plugins
[tool.poetry.plugins."aura.uri_handlers"]
pypi = "aura.uri_handlers.pypi:PyPiHandler"
mirror = "aura.uri_handlers.mirror:MirrorHandler"
git = "aura.uri_handlers.git:GitRepoHandler"
local = "aura.uri_handlers.local:LocalFileHandler"
[tool.poetry.plugins."aura.ast_visitors"]
convert = "aura.analyzers.python.convert_ast:ASTVisitor"
rewrite = "aura.analyzers.python.rewrite_ast:ASTRewrite"
ast_pattern_matching = "aura.analyzers.python.pattern_matching_visitor:ASTPatternMatcherVisitor"
taint_analysis = "aura.analyzers.python.taint.visitor:TaintAnalysis"
readonly = "aura.analyzers.python.readonly:ReadOnlyAnalyzer"
[tool.poetry.plugins."aura.output_handlers"]
text = "aura.output.text:TextScanOutput"
sqlite = "aura.output.sqlite:SQLiteScanOutput"
json = "aura.output.json:JSONScanOutput"
gitlab-sast = "aura.output.gitlab:GitlabSASTOutput"
sarif = "aura.output.sarif:SARIFOutput"
sbom = "aura.output.sbom:SBOMOutput"
html = "aura.output.html:HTMLOutput"
postgres = "aura.output.postgres:PostgresScanOutput"
[tool.poetry.plugins."aura.diff_output_handlers"]
text = "aura.output.text:TextDiffOutput"
json = "aura.output.json:JSONDiffOutput"
sqlite = "aura.output.sqlite:SQLiteDiffOutput"
[tool.poetry.plugins."aura.info_output_handlers"]
text = "aura.output.text:TextInfoOutput"
[tool.poetry.plugins."aura.typosquatting_output_handlers"]
text = "aura.output.text:TextTyposquattingOutput"
json = "aura.output.json:JSONTyposquattingOutput"
[tool.poetry.plugins."aura.diff_hooks"]
diff_archive = "aura.analyzers.archive:diff_archive"
[tool.poetry.plugins."aura.input_hooks"]
typosquatting = "aura.analyzers.typosquatting:analyze"
package_enrichment = "aura.analyzers.package_enrichment:analyze"
[tool.poetry.plugins."aura.analyzers"]
file_analyzer = "aura.analyzers.fs_struct:analyze"
archive = "aura.analyzers.archive:archive_analyzer"
pyproject_toml = "aura.analyzers.pyproject:analyze_pyproject"
req_analyzer = "aura.analyzers.requirements_analyzer:analyze_requirements_file"
yara = "aura.analyzers.yara_scan:analyze"
xml = "aura.analyzers.xml:analyze"
pypirc = "aura.analyzers.pypirc:analyze"
python_dists = "aura.analyzers.dists:analyze"
setup_py = "aura.analyzers.setup:SetupPy"
data_finder = "aura.analyzers.data_finder:DataFinder"
string_finder = "aura.analyzers.data_finder:StringFinder"
jinja = "aura.analyzers.python.jinja:JinjaAnalyzer"
sqli = "aura.analyzers.python.sqli:SQLi"
misc = "aura.analyzers.python.misc:MiscAnalyzer"
crypto_gen_key = "aura.analyzers.python.crypto:CryptoGenKey"
secrets = "aura.analyzers.python.secrets:SecretsAnalyzer"
taint_analysis = "aura.analyzers.python.taint.base:TaintDetection"
stats = "aura.analyzers.stats:analyze"
non_ascii_characters = "aura.analyzers.python.unicode:NonAsciiCharacters"
# Post analysis hooks
directory_tree_stats = "aura.analyzers.stats:DirectoryTreeStats"
behavioral_analysis = "aura.analyzers.behavioral:BehavioralAnalysis"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = [
"e2e: marks tests with end-to-end behaviour, there are relativelly slow as they test a complete behaviour from executing the cli command to the finished results",
]
[tool.black]
line-length = 120
target-version = ["py38"]
[tool.mypy]
ignore_missing_imports = true
warn_unreachable = true
show_error_codes = true
disable_error_code = "import"
check_untyped_defs = true