attack-website icon indicating copy to clipboard operation
attack-website copied to clipboard

URLs are inconsistent

Open stmtstk opened this issue 3 years ago • 1 comments

  • Problem

URLs to the same technique, software, mitigation, or group page are inconsistent.

  • Detail

URLs to the same object are inconsistent. For example,

  1. /techniques/T1595/ (in href attributes in anchor tags)
  2. /techniques/T1595/index.html (in index.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.

stmtstk avatar Jul 27 '21 06:07 stmtstk

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.

isaisabel avatar Jul 27 '21 12:07 isaisabel