Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reviewed the rules. Removed some duplicates and fixed some typos. #164

Merged
merged 1 commit into from Mar 11, 2020
Merged

Reviewed the rules. Removed some duplicates and fixed some typos. #164

merged 1 commit into from Mar 11, 2020

Conversation

parsiya
Copy link
Contributor

@parsiya parsiya commented Mar 11, 2020

  • cryptography
    • algorithm_implementation.json: First and second rules are the same. They both look for a SHA1 constant.
      • Removed the first rule.
    • crypto_currency.json: markleroot -> merkleroot
    • external_libraries.json: Crypographic -> Cryptographic.
    • random.json: Crypgraphy -> Cryptography.
    • crypto_currency.json: Cryptograpy to Cryptography.
  • data_types
    • secrets.json: password and access_token are repeated in the patterns of the same rule on lines 12 and 30.
      • Removed password and access_token from line 12.
    • sensitive.json: spouce -> spouse.
    • financial.json: deuch-mark -> deutsche-mark
  • frameworks/python.json:
    • Pryamid -> Pyramid.
    • Line 34 - remove trailing comma. "confidence": "high", -> "confidence": "high".
  • general
    • code_metrics.json: pyton to python.

Verified the rules.

$ ApplicationInspector.CLI.exe verifyrules -i -r \removed\local\path\to\ApplicationInspector\AppInspector\rules\default
Microsoft Application Inspector 1.1.10+8d4d8e826d
Verify Rules command running
Verify rules succeeded
Verify Rules command completed

* `cryptography`
    * `algorithm_implementation.json`: First and second rules are the same. They both look for a SHA1 constant.
        * Removed the first rule.
    * `crypto_currency.json`: `markleroot` -> `merkleroot`
    * `external_libraries.json`: `Crypographic` -> `Cryptographic`.
    * `random.json`: `Crypgraphy` -> `Cryptography`.
    * `crypto_currency.json`: `Cryptograpy` to `Cryptography`.
* `data_types`
    * `secrets.json`: `password` and `access_token` are repeated in the patterns of the same rule on lines 12 and 30.
        * Removed `password` and `access_token` from line 12.
    * `sensitive.json`: `spouce` -> `spouse`.
    * `financial.json`: `deuch-mark` -> `deutsche-mark`
* `frameworks/python.json`:
    * `Pryamid` -> `Pyramid`.
    * Line 34 - remove trailing comma. `"confidence": "high",` -> `"confidence": "high"`.
* `general`
    * `code_metrics.json`: `pyton` to `python`.
@gfs
Copy link
Contributor

gfs commented Mar 11, 2020

Thank you for your contribution. At first glance this looks great.

@guyacosta guyacosta merged commit a2a7ae9 into microsoft:master Mar 11, 2020
@guyacosta
Copy link
Contributor

Agreed. Thanks for submitting -approved.

@parsiya parsiya deleted the ruleset-pass-1 branch March 12, 2020 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants