Skip to content

Commit

Permalink
Merge pull request #68 from microsoft/ConfMisc
Browse files Browse the repository at this point in the history
Conf misc
  • Loading branch information
guyacosta committed Jan 15, 2020
2 parents b77c082 + f4b5a0d commit b6e3e26
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions AppInspector/rules/default/os/file_io.json
Expand Up @@ -18,6 +18,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
}
]
Expand All @@ -40,6 +41,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
Expand All @@ -48,6 +50,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
Expand All @@ -56,6 +59,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
}
]
Expand All @@ -73,11 +77,29 @@
"severity": "moderate",
"patterns": [
{
"pattern": "open[(][\"']",
"pattern": "open\\(.*,.*r.*\\);",
"type": "regex",
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
"pattern": ".readlines(",
"type": "string",
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
"pattern": ".read(",
"type": "string",
"scopes": [
"code"
],
"_comment": ""
}
]
Expand Down Expand Up @@ -108,6 +130,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
Expand Down Expand Up @@ -138,6 +161,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
Expand All @@ -146,6 +170,7 @@
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
}
]
Expand Down Expand Up @@ -263,15 +288,6 @@
],
"severity": "moderate",
"patterns": [
{
"pattern": ".deleteDirectory(",
"type": "string",
"scopes": [
"code"
],
"confidence": "high",
"_comment": ""
},
{
"pattern": "file.delete(",
"type": "string",
Expand Down

0 comments on commit b6e3e26

Please sign in to comment.