Commit a165661 1 parent 3221239 commit a165661 Copy full SHA for a165661
File tree 5 files changed +13
-8
lines changed
platform/frontends/x2cpg/src/main/scala/io/appthreat/x2cpg/passes/taggers
5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
name := " chen"
2
2
ThisBuild / organization := " io.appthreat"
3
- ThisBuild / version := " 2.0.10 "
3
+ ThisBuild / version := " 2.0.11 "
4
4
ThisBuild / scalaVersion := " 3.4.1"
5
5
6
6
val cpgVersion = " 1.0.0"
Original file line number Diff line number Diff line change 7
7
"downloadUrl" : " https://github.com/AppThreat/chen" ,
8
8
"issueTracker" : " https://github.com/AppThreat/chen/issues" ,
9
9
"name" : " chen" ,
10
- "version" : " 2.0.10 " ,
10
+ "version" : " 2.0.11 " ,
11
11
"description" : " Code Hierarchy Exploration Net (chen) is an advanced exploration toolkit for your application source code and its dependency hierarchy." ,
12
12
"applicationCategory" : " code-analysis" ,
13
13
"keywords" : [
Original file line number Diff line number Diff line change 1
- {% set version = "2.0.10 " %}
1
+ {% set version = "2.0.11 " %}
2
2
3
3
package :
4
4
name : chen
Original file line number Diff line number Diff line change @@ -155,15 +155,20 @@ class EasyTagsPass(atom: Cpg) extends CpgPass(atom):
155
155
).newTagNode(" crypto-algorithm" ).store()(dstGraph)
156
156
end if
157
157
if language == Languages .PYTHON || language == Languages .PYTHONSRC then
158
- atom.identifier.typeFullName(" cryptography.*" ).newTagNode(" crypto" ).store()(dstGraph)
159
- atom.call.methodFullName(" cryptography.*" ).newTagNode(" crypto" ).store()(dstGraph)
158
+ val known_crypto_libs = " (cryptography|Crypto|ecdsa|nacl).*"
159
+ atom.identifier.typeFullName(known_crypto_libs).newTagNode(
160
+ " crypto"
161
+ ).store()(dstGraph)
162
+ atom.call.methodFullName(known_crypto_libs).newTagNode(
163
+ " crypto"
164
+ ).store()(dstGraph)
160
165
atom.call.methodFullName(
161
- " cryptography.* (generate|encrypt|decrypt|derive|sign|public_bytes|private_bytes|exchange).*"
166
+ s " ${known_crypto_libs} (generate|encrypt|decrypt|derive|sign|public_bytes|private_bytes|exchange|new|update|export_key|import_key|from_string|from_pem|to_pem ).* "
162
167
).newTagNode(
163
168
" crypto-generate"
164
169
).store()(dstGraph)
165
170
atom.call.name(" [A-Z0-9]+" ).methodFullName(
166
- " cryptography.* (primitives|serialization).*"
171
+ s " ${known_crypto_libs} (primitives|serialization).* "
167
172
).argument.inCall.newTagNode(
168
173
" crypto-algorithm"
169
174
).store()(dstGraph)
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " appthreat-chen"
3
- version = " 2.0.10 "
3
+ version = " 2.0.11 "
4
4
description = " Code Hierarchy Exploration Net (chen)"
5
5
authors = [" Team AppThreat <cloud@appthreat.com>" ]
6
6
license = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments