Skip to content

Latest commit

 

History

History
510 lines (412 loc) · 22.8 KB

style_guide.md

File metadata and controls

510 lines (412 loc) · 22.8 KB

Style Guide

This document captures the style conventions for writing and maintaining articles in the Forensics Wiki. It covers:

  • Markdown lint rules
  • expected article structure
  • conventions regarding content

Markdown style

Forensics Wiki uses MkDocs therefore all Markdown in the docs directory must be MkDocs compatible. Since MkDocs does not come with linter, pymarkdown is used to lint Markdown files.

You can run pymarkdown locally via:

tox -e pymarkdown

Conventions pymarkdown checks for:

  • Text and headings must not exceed 100 characters. A single long link may occupy its own line (treat_links_as_single_words). Table rows and code blocks are exempt from the line length limit (tables: false, code_blocks: false).
  • Leave a blank line before and after each heading.
  • Bulleted list use the asterisk style, never hyphens or alternatives, and list elements with text longer than 100 characters are continue at the start of the text after the bullet.
  • Code blocks are fenced and must declare a language.
  • Do not use special characters (!, &, etc.) in headings that other pages link to by anchor; pymarkdown and MkDocs generate different slugs for them. Use plain words instead.
  • Renaming a heading changes its anchor slug. Before renaming, make sure that no other article links to the old slug.
  • Use the native Markdown notation for strikethrough, ~~text~~, instead of HTML tags such as <s> or <del>.
  • There is no native notation for underline in Markdown, use italics or bold to make text stand out instead of HTML tags like <u>.
  • Files end with exactly one trailing newline.

When prose needs a literal <, > or &, write the HTML entity instead: &lt;, &gt; and &amp;. An unescaped <word> in prose is treated as an HTML tag and disappears from the rendered page, and the Markdown engine used by MkDocs does not consume backslash escapes for these characters (a \< or \& in the source shows up as a literal backslash), so HTML entities are the reliable way to escape them. This rule is enforced in CI by check_escaping.py; run tox -e check-escaping locally, or python check_escaping.py --fix docs to correct files automatically.

Non-ASCII punctuation and whitespace must not be used in prose either: they slip in through copy-paste and break searchability and consistent rendering. This is enforced in CI by check_nonascii.py; run tox -e check-nonascii locally, or python check_nonascii.py --fix docs to correct files automatically.

Limit inline HTML to tags that Markdown cannot render natively, such as <sup> or <sub> for superscripts and subscripts. Use standard Markdown syntax (bold, italics, lists, links, tables) for everything else; the topics table on the homepage is an existing exception.

Article structure

Wiki articles are topic pages without a top level heading (heading level 1), MkDocs will add one. Note that index.md is an exception to the rule. Articles start with a MkDocs YAML front matter for example:

tags:
  - Network Analysis

The tags list holds the topic tags. Articles that still need work also list "Articles that need to be expanded".

All articles should start with an introduction that summarizes what is discussed in the article, e.g. Wireless forensics is the process of ...

The body follows, then additional sections in this order:

  1. subsections part of the description of the topic, which are at minimum heading level 2 (##).
  2. ## See Also, which contains references to articles within Forensics Wiki relevant for the topic.
  3. ## External Links, which contain references to external articles, relevant for the topic.
  4. ## Tools or equivalent sections such as ## Services or ## Training

There is no requirement for the length of an article, but it should be long enough to explain the topic.

Naming

The file name of the article should be in all lowercase and use underscores to connect words. For example, forensics.md for an article about "forensics" and forensic_artifacts.md for an article about "forensic artifacts".

Writing style

Using standardized (or normalized) terminology is essential for an international audience because it eliminates ambiguity, ensures accurate and culturally nuanced translations, and creates a unified baseline of communication across diverse languages and borders.

  • Do not assume every reader is a native English speaker, avoid uncommon terms or metaphors.
  • Do not assume every reader has the same expertise or background, avoid non-standard abbreviations or jargon. If unavoidable explain them in the concepts article (concepts.md).
  • Use unlocalized date and time notations, e.g. ISO 8601 (2020-01-01) or the "Month day, year" format as in "January 1, 2020", instead of localized notations such as "DD/MM/YYYY" or "MM/DD/YYYY".
  • Use unambiguous notations, e.g. USD instead of Dollar or $.
  • Use the adjective "forensic" before a noun ("forensic analysis", "forensic investigation"), not the noun "forensics" ("forensics analysis").
  • American spelling such as analyze, analyzed, analyzing, is preferred over British variants, such as analyse, analysed, analysing; corrections are welcome but not required.
  • Use the ASCII character set for punctuation as much as possible, such as "-" instead of "—".

Names

  • Capitalize the names of operating systems, software and other proper nouns, e.g. Windows instead of windows.
  • For Mac OS, prefer Mac OS when the text is about the operating system in general. Use macOS, Mac OS X, or MacOS when it is the official name of a specific version of Mac OS, e.g. macOS 15 Sequoia.
  • Use Windows Registry instead of the more general registry, to disambiguate from, e.g., the domain name registry.

Preferred terminology

See Also: terminology

Analysis, Examination and Investigation

Use the term that matches the scope of the work being described.

  • analysis - the data-level work: interpreting specific artifacts and tool output. The most technical and granular term.
  • examination - the inspection of the evidence itself, forensically sound, documented and court-facing.
  • investigation - the whole case: scoping, acquisition, examination, analysis and reporting, ending in a legally defensible answer.

To decide, look at what the work acts on.

  • Work on data - artifacts, log files, tool output - is analysis.
  • Work on the evidence itself, documented and ready for court, is examination.
  • Work on the case as a whole - the question, the acquisition, the reporting - is investigation.

Where the scope spans more than one level, prefer the narrowest term that fully covers the work being described.

Sub-discipline names and tags are fixed terminology that contain analysis by design should remain as-is. This includes names such as memory analysis, malware analysis, timeline analysis, file analysis, log analysis, cell site analysis and flow-based analysis, as well as the tags listed in the Tags section.

Common English uses of these words are not governed by this rule: professional examinations, such as "pass the CFAP examination", legal proceedings, such as "cross-examination" and fixed organization or product names, such as "LiveWire Investigator".

Analyst, examiner or investigator

  • analyst, for the person who analyzes the data
  • examiner, for the person who performs the examination
  • investigator, for the person who owns the investigation

Please do not use forensicator. It is slang.

References and external links

Put most external links at the bottom of an article to prevent littering it with them.

  • For references use [title](url), by author(s), date in chronological order.
  • A reference should have a link (URL) that points to a relevant site. References without a link, or those that point to a non-relevant site, will be removed.
  • For references without a link, use a citation block and reference the source from which the citation came.
  • Make sure external links are publicly accessible. Links with signup or paywalls, or that are geo-restricted, will be removed. The exception are vendor related articles where one can link to a vendor site that uses signup or paywalls, but explicitly call this out.

Category articles

Category articles cover one analysis category and link back to their umbrella topic article. Such as session_reconstruction.md linking back to network_forensics.md

Category articles follow the following structure:

  • definition paragraph
  • optional subsections
  • see also
  • external link
  • tools

Vendor articles

A vendor article is to inform the reader about the organization, its products and most important its role in the digital forensics process.

Vendor articles should include the following structure:

  • A short profile of the vendor.
  • ## Products: a bullet list of the vendor's products (anchors), then a ### section per product with #### sub-features.
  • ## External Links at the end, with a link to its company site.

Commercial software and training should be part of the vendor article and include:

  • A description of the product.
  • The digital forensics tradeoffs of the product.
  • Descriptive prose follows the preferred terminology and uses the term that fits the scope: analysis for data-level work, examination for court-facing inspection of the evidence, and investigation for the case as a whole. Direct quotes from the vendor, official product names and quoted feature names are preserved as-is.
  • References to individual external product pages can be included in the ## External Links. Note that the vendor is expected to keep their information up to date and outdated information such as links will be removed.
  • Other pages that reference a product should link to the vendor article, using an anchor to the specific product where possible.
  • If two vendors have similar names, both articles carry a cross-link noting that they are separate companies in the profile section, see systools.md and sysinfotools_software.md.

Tool articles

If you are writing an article that includes tooling, first read (digital) forensic tooling. An article about tooling should include the following headings:

  • Introduction: This section may include the history of the tool and its supported operating systems and file systems.
  • Caution: The digital forensic tradeoffs to be aware of. Make sure to include the pros and cons of tool use for different digital forensics use cases. Highlight the dependency on other tooling, which is relevant for cross-tool validation (reproducibility.md#cross-tool-validation).
  • Use: This section may include the common uses of a tool. A tool could contain one or more common uses. For example, the dd Unix utility could image drives as well as wipe drives so that data is not recoverable.
  • See Also: This section may include links to Forensics Wiki articles with related content, complementary tools, or forks of the tool. For example, an article about the Sleuth Kit (TSK) may include a link to an article about Autopsy.
  • External Links: Any external links, such as references to support the information provided, or links to the project page or official website.

Command line examples

If you want to include command line examples, use a code block.

For Linux/Unix:

```bash
$ whoami
user
```

For Windows:

```cmd
whoami
desktop\user
```

Images

Images or illustrations are not required, but if they help explain the topic they could be added. Any images must be placed in the docs/assets/images directory. The simplest way to add an image to a document is using HTML:

![myimage.jpg](assets/images/myimage.jpg){width="200"}

Tags

Tags help make content more discoverable. They appear at the top of the page and should help the user know what the content is related to. Tags are searchable and clickable, so you could easily see other articles that have the same tag.

How to add tags

After you write your article, you can place tags at the top of the page using the following syntax:

---
tags:
  - Commercial Software
  - Disk Analysis
  - Tools
  - Windows
---

Note that tags are formatted in YAML

Only tags registered in scripts/allowed_tags.yml may be used: an unregistered tag would create a stray tag page and split related articles over near-duplicates. This registry is enforced in CI by check_tags.py - run tox -e check-tags locally, or python check_tags.py --list docs to inspect how often each registered tag is used.

Tag guidelines

Tags should describe the content of the article and should be applied uniformly across all the content. This will help users discover the content more easily. Multiple topics could apply to one article. For example, a page tagged with Tools would also likely benefit from tags denoting the appropriate operating system, software type, and analysis type.

See examples below the table.

Tag Description
AIX The AIX operating system from IBM.
Analysis General analysis topics. Prefer a more specific analysis tag where applicable.
Analysis Techniques General forensic analysis techniques - discrete, tactical actions used to extract, parse, or interpret data from specific digital artifacts.
Android The Android operating system for mobile devices and tablets.
Anti-Forensics Techniques and tools to hide, destroy, or defeat forensic analysis.
Applications Applications and the forensic artifacts they produce.
Archive Format Archived and compressed file formats, e.g. ZIP, RAR, and tar.
Articles that need to be expanded Process tag marking articles that still need work.
Artifact Analysis Forensic analysis of operating system and application artifacts.
Audio Format Audio file formats and audio data.
Bibliographies Bibliographies of the literature on a digital forensics topic.
BlackberryOS Operating systems for BlackBerry devices.
Books Books on digital forensics and lists of books.
ChromeOS Chrome OS, the operating system from Google.
Cloud Forensics Forensic acquisition and analysis of data stored in cloud services.
Commercial Hardware Commercial hardware products for digital forensics.
Commercial Software Proprietary commercial software products.
Computer Bus Computer bus interfaces such as USB and FireWire.
Concept Concepts and definitions in digital forensics.
Conferences Conferences and events focused on digital forensics.
Cryptography Cryptography and its forensic applications.
Data Carving Recovering files from raw data using content signatures.
Data Recovery Recovering lost or deleted data from storage media.
Database Databases and database-based forensic artifacts.
Database File Formats File formats used to store database content.
Debugging Debugging techniques and tools relevant to forensics.
Desktop Environments Desktop environments and their forensic artifacts.
Desktop Search Desktop search tools and their indices.
Discontinued Tools and software that have been abandoned, deprecated, or discontinued.
Disk Analysis Forensic analysis of disk storage media.
Disk Encryption Encryption of disks and volumes, e.g. BitLocker, FileVault, and LUKS.
Disk Image Format File formats used to store disk images, e.g. AFF4, EWF, and RAW.
Disk Imaging Creating forensic images of disk storage media.
Email Analysis Forensic analysis of email messages, headers, and mail stores.
Encryption Encryption and its forensic implications.
Executable File Format Executable file formats such as PE/COFF, NE, ELF, and Mach-O.
File Analysis Forensic analysis of individual files and their contents.
File Formats File formats and binary data structures relevant to forensics.
File Systems File systems and on-disk structures, e.g. NTFS, ext, and APFS.
Free Software Software that is free to use, at no monetary cost, whether or not open source.
FreeBSD The FreeBSD operating system.
Gaming Video games, game consoles, and related forensic topics.
Hard Drives Hard drives and related storage devices.
Hardware Hardware relevant to digital forensics.
Hashing Hash functions and forensic hashing techniques.
Howtos Step-by-step how-to articles.
Incident Response Incident response procedures, tools, and artifacts.
Investigations Digital investigations and investigative methods.
Knowledge Base Repositories of factual reference information.
Legal Legal aspects of digital forensics, e.g. evidence and admissibility.
Linux The Linux family of operating systems.
Live Analysis Analysis of a case performed on a running system.
Live CD Bootable live media used for forensic analysis.
Log Analysis Forensic analysis of log files.
Mac OS Apple's Mac OS operating system.
Malware Malware and its forensic analysis.
Memory Computer memory (RAM) and memory hardware.
Memory Analysis Forensic analysis of the contents of memory (RAM).
Memory Imaging Capturing the contents of memory (RAM) into an image.
Microprocessor Processors (CPUs) and processor-related topics.
Mobile Mobile device forensics in general.
Mobile Device Tools Tools for mobile device forensics and data extraction.
Mobile Forensics Forensic acquisition and analysis of mobile device data.
Mobile Operating Systems Operating systems for mobile devices.
NetBSD The NetBSD operating system.
Network Analysis Forensic analysis of network traffic and protocols.
No Category Process tag marking articles that have not been categorized.
Null Byte Hashes Recorded MD5 and SHA-1 hashes of sequences of null bytes.
Online File Storage Cloud file storage services and their forensic aspects.
Open Source Software (Free) Open Source Software (FOSS) - software that is open source and free to use.
OpenBSD The OpenBSD operating system.
Operating Systems Operating systems in general, across specific operating systems.
Organization Institutions, agencies, and non-vendor companies in forensics.
Papers Research papers on digital forensics.
People People who work in or contribute to digital forensics.
Personal Devices Personal and consumer computing devices.
Photo Image file formats and image analysis.
Preservation Preserving the integrity of evidence and data.
Programming Programming topics relevant to digital forensics.
Public Domain Software Software released into the public domain.
Publications Collections of digital forensics publications, e.g. journals, books, and websites.
Quality Assurance Ensuring the accuracy and quality of forensic work.
Redirect Redirect pages that point to the canonical article.
Research Academic research and research projects in digital forensics.
Reverse Engineering Reverse engineering of programs and protocols.
SIM SIM cards and cellular subscriber data.
Secure Deletion Sanitizing media so that stored data cannot be recovered.
Software Software in general, where no more specific software tag applies.
Solaris The Solaris operating system.
System Analysis Forensic analysis of whole operating systems.
Text Text-based file formats and textual evidence.
Threat Intelligence Cyber threat intelligence and its forensic use.
Timeline Analysis Building and analyzing timelines from forensic artifacts.
Tools Software tools used in digital forensics.
Training Training courses, certifications, and education programs.
Vendor Companies that provide products or training for digital forensics.
Virtual Disk Virtual disk images, e.g. VDI, VHD, and VMDK.
Virtualization Virtual machines and virtualized forensic environments.
Volume Systems Volume schemes such as MBR, GPT, LVM, and LDM.
Web Browsers Web browsers and their forensic artifacts.
Websites Websites and website collections relevant to digital forensics.
Windows The Microsoft Windows operating system.
Windows Mobile The Windows Mobile operating system.
Windows Registry Analysis Forensic analysis of the Windows Registry.
Wireless Wireless communication and wireless forensics.
Write Blocker Hardware and software write blockers.
XML Format XML-based file formats and specifications.
iOS Apple's iOS operating system for iPhone and iPad.

Special purpose tags, including some inherited from MediaWiki times.

Tag Description
Active Directory Microsoft's directory service for users, computers, and permissions.
Digital Forensics XML The DFXL standard for exchanging forensic data.
Download Managers Download manager software and its forensic artifacts.
Libyal The libyal set of open-source parser libraries.

Tagging examples

Let's run through some examples to see how tags would be applied to articles.

Example 1: An article about Windows

An article about the Windows operating system in general.

---
tags:
  - Operating Systems
  - Windows
---

Example 2: An article about an open source Linux/macOS tool that parses logs in /var/messages

An article about a tool should contain the operating systems it supports (Linux and Mac OS), what the tool is used for (in this case, Log Analysis), and the software type: Open Source Software.

---
tags:
  - Linux
  - Log Analysis
  - Mac OS
  - Open Source Software
  - Tools
---

Example 3: An article about Bitlocker encryption

An article about Bitlocker should contain the following tags:

---
tags:
  - Anti-Forensics
  - Encryption
  - Windows
---

Bitlocker is a type of "Encryption", available only for "Windows", and might be relevant during "Anti-Forensics" analysis.

Example 4: An article about the ZIP file format

File types are tagged with File Formats and the file type. In this case, ZIP files are Archive Format files.

---
tags:
  - Archive Format
  - File Formats
---

Example 5: An article about Windows System Restore Points

Windows System Restore Points are an artifact of the Windows operating system, so the article is tagged with that operating system.

---
tags:
  - Windows
---

Registering a new tag

Before using a tag that is not in the tables above (or in scripts/allowed_tags.yml), check that no registered tag already covers the same idea; near-duplicate tags split related articles. If a genuinely new tag is needed:

  1. add it to scripts/allowed_tags.yml (keep the list sorted),
  2. add a row describing it to the tag tables above, and
  3. run python scripts/check_tags.py --check docs to confirm the registry is complete.