attack-website
attack-website copied to clipboard
URLs are inconsistent
- Problem
URLs to the same technique, software, mitigation, or group page are inconsistent.
- Detail
URLs to the same object are inconsistent. For example,
-
/techniques/T1595/
(inhref
attributes inanchor
tags) -
/techniques/T1595/index.html
(inindex.json
used in ATT&CK object search)
Both URLs lead us to the same object (the same web content). There are many incosistent URL expressions in ATT&CK, such as the example above.
If there is no reason, I would like to suggest unifying the them into a single URL format as shown in the solution section below.
- Solution
I would go for something like "/techniques/T1595/
" with "/
" and without "index.html
" at the end.
That is what you get when you click the links in the ATT&CK pages.
As for 'without "index.html
"', the ATT&CK pages are currently static,
but they might be generated dynamically in the future.
It would be safe not to specify "index.html
", to be prepared for dynamic HTML generation.
- Additional improvement
Not in this repo, but ATT&CK STIX 2 JSON file has URLs like "/technique/T1595
" in its external_references
.
I believe that they should be consistent with URLs in this repo.
When the standard is set, I will raise an issue for the ATT&CK STIX 2 JSON file.
Hi @stmtstk,
You're right that we probably shouldn't be linking to index.html
files directly in case we ever change our site architecture. Currently the site is entirely static, so there's really no chance of running into issues with dynamically generated pages under the current architecture. However, if we ever rewrote the site using a new architecture (e.g Angular, VueJS), it could definitely cause problems.