Skip to content

Commit

Permalink
Nit: use single ticks not double
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb committed Mar 7, 2024
1 parent af74570 commit 06907ca
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion precli/rules/go/stdlib/crypto_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
## Remediation
The recommendation is to swap the insecure hashing method to one of the more
secure alternatives, ``sha256`` or ``sha512``.
secure alternatives, `sha256` or `sha512`.
```go
package main
Expand Down
4 changes: 2 additions & 2 deletions precli/rules/python/stdlib/crypt_weak_hash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2024 Secure Saurce LLC
r"""
# Reversible One Way Hash in ``crypt`` Module
# Reversible One Way Hash in `crypt` Module
The Python module `crypt` provides a number of functions for password
hashing. However, some of the hashing functions supported by `crypt` are weak
Expand Down Expand Up @@ -38,7 +38,7 @@
## Remediation
The recommendation is to swap the insecure hashing method to one of the more
secure alternatives, ``SHA256`` or ``SHA512``.
secure alternatives, `SHA256` or `SHA512`.
```python
import crypt
Expand Down
6 changes: 3 additions & 3 deletions precli/rules/python/stdlib/ftplib_cleartext.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
r"""
# Cleartext Transmission of Sensitive Information in the `ftplib` Module
The Python module ``ftplib`` provides a number of functions for accessing FTP
The Python module `ftplib` provides a number of functions for accessing FTP
servers. However, the module does not provide any security features. This
means that data transmitted over the network, including passwords, is sent
in cleartext. This makes it possible for attackers to intercept and read
Expand Down Expand Up @@ -31,8 +31,8 @@
## Remediation
If the FTP protocol must be used and sensitive data will be transferred, it
is recommended to secure the connection using ``FTP_TLS`` class. It's also
important to call ``prot_p()`` to secure the data connection.
is recommended to secure the connection using `FTP_TLS` class. It's also
important to call `prot_p()` to secure the data connection.
```python
import ftplib
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/hashlib_weak_hash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2024 Secure Saurce LLC
r"""
# Reversible One Way Hash in ``hashlib`` Module
# Reversible One Way Hash in `hashlib` Module
The Python module `hashlib` provides a number of functions for hashing data.
However, some of the hash algorithms supported by hashlib are insecure and
Expand Down
2 changes: 1 addition & 1 deletion precli/rules/python/stdlib/hmac_weak_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
## Remediation
The recommendation is to swap the insecure hashing method to one of the more
secure alternatives, ``SHA256``, ``SHA-384``, or ``SHA512``.
secure alternatives, `SHA256`, `SHA-384`, or `SHA512`.
```python
import hmac
Expand Down

0 comments on commit 06907ca

Please sign in to comment.