Skip to content

Commit 0f010b9

Browse files
author
drighetto
committed
Fix error - Work on #210
1 parent 45fe3c8 commit 0f010b9

23 files changed

+154
-41
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 4.67
3+
"Not using it" : 95.33
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 21.31
3+
"Not using it" : 78.69
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 18.82
3+
"Not using it" : 81.18
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 3.84
3+
"Not using it" : 96.16
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 0.01
3+
"Not using it" : 99.99
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 60.3
3+
"Not using it" : 39.7
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 32.74
3+
"Not using it" : 67.26
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 0.9
3+
"Not using it" : 99.1
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 21.82
3+
"Not using it" : 78.18
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 8.85
3+
"Not using it" : 91.15
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 25.4
3+
"Not using it" : 74.6
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 5.07
3+
"Not using it" : 94.93
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Not using them" : 26.17
3+
"Using them" : 73.83
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 1.5
3+
"Not using it" : 98.5
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 35.57
3+
"Not using it" : 64.43
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using unsafe" : 7.65
3+
"Not using unsafe" : 92.35
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Insecure conf" : 2.29
3+
"Secure conf" : 97.71
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 37.59
3+
"Not using it" : 62.41
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 0.07
3+
"Not using it" : 99.93
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Using it" : 5.92
3+
"Not using it" : 94.08
4+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pie
2+
"Insecure conf" : 4.34
3+
"Secure conf" : 95.66
4+

ci/tab_stats_generate_md_file.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def trace(msg):
6363

6464

6565
def prepare_generation_of_image_from_mermaid(mermaid_code, filename):
66-
trace(f"Call prepare_generation_of_image_from_mermaid() => '{filename}'")
66+
trace(f"Call prepare_generation_of_image_from_mermaid() => {filename}")
6767
with open(f"{IMAGE_FOLDER_LOCATION}/{filename}.mmd", "w", encoding="utf-8") as f:
6868
f.write(mermaid_code + "\n")
6969
trace("Call end.")
@@ -80,8 +80,9 @@ def load_oshp_headers():
8080
header_names.append(http_header["name"].lower())
8181
trace(f"Call load_oshp_headers() :: Load file {OSHP_SECURITY_HEADERS_EXTRA_FILE_LOCATION}")
8282
with open(OSHP_SECURITY_HEADERS_EXTRA_FILE_LOCATION, mode="r", encoding="utf-8") as f:
83-
header_names = f.read().splitlines()
84-
for http_header in header_names:
83+
http_headers = f.read()
84+
trace(f"Call load_oshp_headers() :: Parse file {OSHP_SECURITY_HEADERS_EXTRA_FILE_LOCATION}")
85+
for http_header in http_headers .split("\n"):
8586
header_names.append(http_header.lower().strip(" \n\r\t"))
8687
header_names = list(dict.fromkeys(header_names))
8788
header_names.sort()
@@ -90,7 +91,7 @@ def load_oshp_headers():
9091

9192

9293
def execute_query_against_data_db(sql_query):
93-
trace(f"Call execute_query_against_data_db() => '{sql_query}'")
94+
trace(f"Call execute_query_against_data_db() => {sql_query}")
9495
with sqlite3.connect(DATA_DB_FILE) as connection:
9596
curs = connection.cursor()
9697
curs.execute(sql_query)

tab_statistics.md

Lines changed: 65 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tags: headers
1717

1818

1919

20-
⏲️ Last update: 02/02/2025 at 15:29:30 - Domains analyzed count: 150000.
20+
⏲️ Last update: 02/02/2025 at 18:56:45 - Domains analyzed count: 150000.
2121

2222
## Global usage of secure headers
2323

@@ -26,88 +26,116 @@ Provide the distribution of usage of secure headers across all domains analyzed.
2626
![be611e71c615c27471d766612bfb7e8b05d743c7](assets/tab_stats_generated_images/be611e71c615c27471d766612bfb7e8b05d743c7.png)
2727

2828

29-
## Global usage of header 'Cache-Control'
29+
## Global usage of header 'cache-control'
3030

31-
Provide the distribution of usage of the header 'Cache-Control' across all domains analyzed.
31+
Provide the distribution of usage of the header 'cache-control' across all domains analyzed.
3232

33-
![5b54b09f5f5c815a014d71b3b07495a69e3a4509](assets/tab_stats_generated_images/5b54b09f5f5c815a014d71b3b07495a69e3a4509.png)
33+
![577d76c6092c4da6347e1d2c89523dd13a1925f7](assets/tab_stats_generated_images/577d76c6092c4da6347e1d2c89523dd13a1925f7.png)
3434

3535

36-
## Global usage of header 'Clear-Site-Data'
36+
## Global usage of header 'clear-site-data'
3737

38-
Provide the distribution of usage of the header 'Clear-Site-Data' across all domains analyzed.
38+
Provide the distribution of usage of the header 'clear-site-data' across all domains analyzed.
3939

40-
![2e12376a6c60ad301b25193c11517ea0cd6aba2f](assets/tab_stats_generated_images/2e12376a6c60ad301b25193c11517ea0cd6aba2f.png)
40+
![49f6a7d15e9a2e3fd4cad94360d37e83ef05fa00](assets/tab_stats_generated_images/49f6a7d15e9a2e3fd4cad94360d37e83ef05fa00.png)
4141

4242

43-
## Global usage of header 'Content-Security-Policy'
43+
## Global usage of header 'content-security-policy'
4444

45-
Provide the distribution of usage of the header 'Content-Security-Policy' across all domains analyzed.
45+
Provide the distribution of usage of the header 'content-security-policy' across all domains analyzed.
4646

47-
![5e74150e7d98f861bf3fa632ca32e2d7f3e59632](assets/tab_stats_generated_images/5e74150e7d98f861bf3fa632ca32e2d7f3e59632.png)
47+
![2da94599d03c73073ac60b0d8864152f8609cc5b](assets/tab_stats_generated_images/2da94599d03c73073ac60b0d8864152f8609cc5b.png)
4848

4949

50-
## Global usage of header 'Cross-Origin-Embedder-Policy'
50+
## Global usage of header 'content-security-policy-report-only'
5151

52-
Provide the distribution of usage of the header 'Cross-Origin-Embedder-Policy' across all domains analyzed.
52+
Provide the distribution of usage of the header 'content-security-policy-report-only' across all domains analyzed.
5353

54-
![00334f25a22543fb684dbe10861afee71c5263e0](assets/tab_stats_generated_images/00334f25a22543fb684dbe10861afee71c5263e0.png)
54+
![c0b5a705e7e94af3f71ef579bb01b45c2a80ca6b](assets/tab_stats_generated_images/c0b5a705e7e94af3f71ef579bb01b45c2a80ca6b.png)
5555

5656

57-
## Global usage of header 'Cross-Origin-Opener-Policy'
57+
## Global usage of header 'cross-origin-embedder-policy'
5858

59-
Provide the distribution of usage of the header 'Cross-Origin-Opener-Policy' across all domains analyzed.
59+
Provide the distribution of usage of the header 'cross-origin-embedder-policy' across all domains analyzed.
6060

61-
![f700c02d30083cf617bdeca51e7eec3d49fe4a08](assets/tab_stats_generated_images/f700c02d30083cf617bdeca51e7eec3d49fe4a08.png)
61+
![0753b0c4fecc8c56d81e31f36bc8c397cea5032b](assets/tab_stats_generated_images/0753b0c4fecc8c56d81e31f36bc8c397cea5032b.png)
6262

6363

64-
## Global usage of header 'Cross-Origin-Resource-Policy'
64+
## Global usage of header 'cross-origin-opener-policy'
6565

66-
Provide the distribution of usage of the header 'Cross-Origin-Resource-Policy' across all domains analyzed.
66+
Provide the distribution of usage of the header 'cross-origin-opener-policy' across all domains analyzed.
6767

68-
![fa069b07281496f391d957d8936337da1a601614](assets/tab_stats_generated_images/fa069b07281496f391d957d8936337da1a601614.png)
68+
![e7e550d9cbff786153f7f13f664361e41efee57c](assets/tab_stats_generated_images/e7e550d9cbff786153f7f13f664361e41efee57c.png)
6969

7070

71-
## Global usage of header 'Permissions-Policy'
71+
## Global usage of header 'cross-origin-resource-policy'
7272

73-
Provide the distribution of usage of the header 'Permissions-Policy' across all domains analyzed.
73+
Provide the distribution of usage of the header 'cross-origin-resource-policy' across all domains analyzed.
7474

75-
![0792b92709f42a7962c27c64b74b94a4dfbffda1](assets/tab_stats_generated_images/0792b92709f42a7962c27c64b74b94a4dfbffda1.png)
75+
![9cf15b18b743939cbe01342ed5461bc7af6c4d36](assets/tab_stats_generated_images/9cf15b18b743939cbe01342ed5461bc7af6c4d36.png)
7676

7777

78-
## Global usage of header 'Referrer-Policy'
78+
## Global usage of header 'expect-ct'
7979

80-
Provide the distribution of usage of the header 'Referrer-Policy' across all domains analyzed.
80+
Provide the distribution of usage of the header 'expect-ct' across all domains analyzed.
8181

82-
![d5e855464d800d7b27eb3e430c5ae378497ddf50](assets/tab_stats_generated_images/d5e855464d800d7b27eb3e430c5ae378497ddf50.png)
82+
![78fc7e8d03077546e27c016ee80b2143dc4ebb08](assets/tab_stats_generated_images/78fc7e8d03077546e27c016ee80b2143dc4ebb08.png)
8383

8484

85-
## Global usage of header 'Strict-Transport-Security'
85+
## Global usage of header 'permissions-policy'
8686

87-
Provide the distribution of usage of the header 'Strict-Transport-Security' across all domains analyzed.
87+
Provide the distribution of usage of the header 'permissions-policy' across all domains analyzed.
8888

89-
![dbeb94ebb1ed7763f390b7be97a292f3c66920c7](assets/tab_stats_generated_images/dbeb94ebb1ed7763f390b7be97a292f3c66920c7.png)
89+
![87eabe1fe075f9034dc4db8f76be07da0d08afe3](assets/tab_stats_generated_images/87eabe1fe075f9034dc4db8f76be07da0d08afe3.png)
9090

9191

92-
## Global usage of header 'X-Content-Type-Options'
92+
## Global usage of header 'public-key-pins'
9393

94-
Provide the distribution of usage of the header 'X-Content-Type-Options' across all domains analyzed.
94+
Provide the distribution of usage of the header 'public-key-pins' across all domains analyzed.
9595

96-
![0259a15512c639e10df724dc019babf03534b303](assets/tab_stats_generated_images/0259a15512c639e10df724dc019babf03534b303.png)
96+
![e58d592c018472a09777c3fd5440f556bd176dd5](assets/tab_stats_generated_images/e58d592c018472a09777c3fd5440f556bd176dd5.png)
9797

9898

99-
## Global usage of header 'X-Frame-Options'
99+
## Global usage of header 'referrer-policy'
100100

101-
Provide the distribution of usage of the header 'X-Frame-Options' across all domains analyzed.
101+
Provide the distribution of usage of the header 'referrer-policy' across all domains analyzed.
102102

103-
![6ddd8e89eb34224bf460f672999c7dd447baef79](assets/tab_stats_generated_images/6ddd8e89eb34224bf460f672999c7dd447baef79.png)
103+
![15d82f7cac9021b254fdf8fed98bb870acc436fb](assets/tab_stats_generated_images/15d82f7cac9021b254fdf8fed98bb870acc436fb.png)
104104

105105

106-
## Global usage of header 'X-Permitted-Cross-Domain-Policies'
106+
## Global usage of header 'strict-transport-security'
107107

108-
Provide the distribution of usage of the header 'X-Permitted-Cross-Domain-Policies' across all domains analyzed.
108+
Provide the distribution of usage of the header 'strict-transport-security' across all domains analyzed.
109109

110-
![364a633adcd63d315ec3df781fed6008c57ad00d](assets/tab_stats_generated_images/364a633adcd63d315ec3df781fed6008c57ad00d.png)
110+
![c313c0ceef6eb3116547426b41bdf278df2cc0c6](assets/tab_stats_generated_images/c313c0ceef6eb3116547426b41bdf278df2cc0c6.png)
111+
112+
113+
## Global usage of header 'x-content-type-options'
114+
115+
Provide the distribution of usage of the header 'x-content-type-options' across all domains analyzed.
116+
117+
![5808d16f90388bd6309eb12d74010d1c4a8518cf](assets/tab_stats_generated_images/5808d16f90388bd6309eb12d74010d1c4a8518cf.png)
118+
119+
120+
## Global usage of header 'x-frame-options'
121+
122+
Provide the distribution of usage of the header 'x-frame-options' across all domains analyzed.
123+
124+
![cfaf56ab8ec6588aa6ee9297b4f93638640d1048](assets/tab_stats_generated_images/cfaf56ab8ec6588aa6ee9297b4f93638640d1048.png)
125+
126+
127+
## Global usage of header 'x-permitted-cross-domain-policies'
128+
129+
Provide the distribution of usage of the header 'x-permitted-cross-domain-policies' across all domains analyzed.
130+
131+
![2ec5e9a684938a169c757a7a631595c53fccc769](assets/tab_stats_generated_images/2ec5e9a684938a169c757a7a631595c53fccc769.png)
132+
133+
134+
## Global usage of header 'x-xss-protection'
135+
136+
Provide the distribution of usage of the header 'x-xss-protection' across all domains analyzed.
137+
138+
![7b2906800d5eb94d25d0f5cf18322155e8f2192d](assets/tab_stats_generated_images/7b2906800d5eb94d25d0f5cf18322155e8f2192d.png)
111139

112140

113141
## Global usage of insecure framing configuration via the header 'x-frame-options'

0 commit comments

Comments
 (0)