Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions docs/guides/system-security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# System Security

You can find the security status of any solar system in [SDE](../services/static-data/index.md)'s `mapSolarSystems.jsonl` file.
It is under the `securityStatus` field, which is a floating point value given with full precision, usually 6 decimal places.

Not to be confused with the `securityClass` field, which is a string value with unknown meaning.
Copy link
Contributor Author

@Nohus Nohus Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anyone knows what this value means, do shout.
Some people were fruitlessly wondering here: https://forums.eveonline.com/t/what-is-security-class-of-a-system/362759

I have a suspicion it means nothing in the current version of the game, and maybe should get removed from the SDE to avoid confusion.


In-game, the security status (also known as security level) is shown with 1 decimal place precision, from -1.0 to 1.0. In the SDE, it is given with full precision and needs to be rounded to 1 decimal place to match the in-game display.

## Rounding

Security status rounding follows normal rounding rules, with one exception:
if the security status is in the range $0.0 < x < 0.05$, it is rounded to 0.1, instead of 0.0. In other words, if the security status is positive, however slightly, the rounded result will always be at least 0.1.

<h3>Example</h3>

--8<-- "snippets/formulae/security-status-rounding.md"

## Security Class

Various game mechanics rely on the security class of a system, which can be one of the following:

- High Security (high-sec), where the security status is $x ≥ 0.45$, or the rounded security status is $x ≥ 0.5$
- Low Security (low-sec), where the security status is $0.0 < x < 0.45$, or the rounded security status is $0.1 ≤ x ≤ 0.4$
- Null Security (null-sec), where the security status is $x ≤ 0.0$, or the rounded security status is $x ≤ 0.0$

<h3>Example</h3>

--8<-- "snippets/formulae/security-class.md"

## Security Status Colors

In-game, the security status is often colored according to the following table:

| Color | Color hex code | Security status |
|------------------------------------------------------|----------------|-----------------|
| <div style="height:20px; background:#2C75E1;"></div> | #2C75E1 | ≥ 1.0 |
| <div style="height:20px; background:#399AEB;"></div> | #399AEB | ≥ 0.9 |
| <div style="height:20px; background:#4ECEF8;"></div> | #4ECEF8 | ≥ 0.8 |
| <div style="height:20px; background:#60DBA3;"></div> | #60DBA3 | ≥ 0.7 |
| <div style="height:20px; background:#71E754;"></div> | #71E754 | ≥ 0.6 |
| <div style="height:20px; background:#F5FF83;"></div> | #F5FF83 | ≥ 0.5 |
| <div style="height:20px; background:#DC6C06;"></div> | #DC6C06 | ≥ 0.4 |
| <div style="height:20px; background:#CE440F;"></div> | #CE440F | ≥ 0.3 |
| <div style="height:20px; background:#BB1116;"></div> | #BB1116 | ≥ 0.2 |
| <div style="height:20px; background:#731F1F;"></div> | #731F1F | ≥ 0.1 |
| <div style="height:20px; background:#8D3163;"></div> | #8D3163 | else |
2 changes: 1 addition & 1 deletion docs/services/static-data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ Formatting uses the same rules above.

## Security Office

The SDE lists stations having a Security Office; however, only the ones in Lowsec-located CONCORD / DED stations are available to you.
The SDE lists stations having a Security Office; however, only the ones in [Lowsec](../../guides/system-security.md)-located CONCORD / DED stations are available to you.

9 changes: 9 additions & 0 deletions snippets/formulae/security-class.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
enum class SecurityClass {
HighSec, LowSec, NullSec
}

fun Double.getSecurityClass() = when {
this >= 0.45 -> SecurityClass.HighSec
this > 0.0 -> SecurityClass.LowSec
else -> SecurityClass.NullSec
}
7 changes: 7 additions & 0 deletions snippets/formulae/security-status-rounding.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import kotlin.math.roundToInt

fun Double.roundSecurity() = when {
this == 0.0 -> 0.0
this in 0.0..0.05 -> (this * 10 + 0.5).roundToInt() / 10.0
else -> (this * 10).roundToInt() / 10.0
}