Skip to content

Commit

Permalink
add concat hook rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsnow committed Jan 20, 2022
1 parent 9d1da44 commit 5241a7e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
23 changes: 15 additions & 8 deletions dongtai_agent_python/policy_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
"source": "P",
"track": "true",
"target": "R",
"value": "builtins.str.__format__",
"value": "builtins.str.__add__",
"inherit": "false"
},
{
Expand Down Expand Up @@ -581,13 +581,6 @@
"value": "builtins.str.cformat",
"inherit": "false"
},
{
"source": "P",
"track": "true",
"target": "R",
"value": "builtins.str.concat",
"inherit": "false"
},
{
"source": "P1",
"track": "true",
Expand Down Expand Up @@ -756,6 +749,13 @@
"value": "builtins.str.zfill",
"inherit": "false"
},
{
"source": "P",
"track": "true",
"target": "R",
"value": "builtins.bytes.__add__",
"inherit": "false"
},
{
"source": "P1,source",
"track": "true",
Expand All @@ -777,6 +777,13 @@
"value": "builtins.bytes.decode",
"inherit": "false"
},
{
"source": "P",
"track": "true",
"target": "R",
"value": "builtins.bytearray.__add__",
"inherit": "false"
},
{
"source": "P1,source",
"track": "true",
Expand Down
3 changes: 3 additions & 0 deletions dongtai_agent_python/setting/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
'builtins.str.__new__',
'builtins.bytes.__new__',
'builtins.bytearray.__init__',
'builtins.str.__add__',
'builtins.bytes.__add__',
'builtins.bytearray.__add__',
]

CRYPTO_BAD_CIPHER_NEW = [
Expand Down

0 comments on commit 5241a7e

Please sign in to comment.