Skip to content

Commit 934c8db

Browse files
committed
Password store Arc, metadata files
1 parent 2e43da6 commit 934c8db

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

password_store/README.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!-- WARNING: This README is generated automatically
2+
-->
3+
# Password stores
4+
5+
## Arc
6+
7+
Arc password stores are created by the Arc open source software (https://github.com/evilsocket/arc). They are AES encrypted, but should not be stored in shared repositories.
8+
9+
<details>
10+
<summary>Pattern Format</summary>
11+
<p>
12+
13+
```regex
14+
{"id":[0-9]+,"title":"[^"]+","encryption":"[^"]+","created_at":"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})","updated_at":"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})","expired_at":"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{6})?(Z|[+-][0-9]{2}:[0-9]{2})","prune":(true|false),"notified":(true|false),"compressed":(true|false),"pinned":(true|false),"size":[0-9]+,"next_id":[0-9]+}
15+
```
16+
17+
**Comments / Notes:**
18+
19+
- Current Version: v0.1
20+
- This spots `meta.json` files created by Arc, not the secrets themselves
21+
- The encrypted secrets will be in a numbered directory below the detected `meta.json` file
22+
- This can also spot uncompressed tar file backups created by Arc
23+
</p>
24+
</details>
25+
26+
27+
<details>
28+
<summary>Start Pattern</summary>
29+
<p>
30+
31+
```regex
32+
\A|\x00
33+
```
34+
35+
</p>
36+
</details>
37+
<details>
38+
<summary>End Pattern</summary>
39+
<p>
40+
41+
```regex
42+
\Z|\x00
43+
```
44+
45+
</p>
46+
</details>

password_store/meta.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":2,"title":"Foo","encryption":"aes","created_at":"2023-04-28T14:33:09.863337+01:00","updated_at":"2023-04-28T14:33:09.863337+01:00","expired_at":"0001-01-01T00:00:00Z","prune":false,"notified":false,"compressed":false,"pinned":false,"size":199,"next_id":1}

password_store/patterns.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
name: Password stores
3+
4+
patterns:
5+
- name: Arc
6+
type: arc
7+
description: "Arc password stores are created by the Arc open source software (https://github.com/evilsocket/arc). They are AES encrypted, but should not be stored in shared repositories."
8+
regex:
9+
pattern: |
10+
{"id":[0-9]+,"title":"[^"]+","encryption":"[^"]+","created_at":"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})","updated_at":"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{6}(Z|[+-][0-9]{2}:[0-9]{2})","expired_at":"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{6})?(Z|[+-][0-9]{2}:[0-9]{2})","prune":(true|false),"notified":(true|false),"compressed":(true|false),"pinned":(true|false),"size":[0-9]+,"next_id":[0-9]+}
11+
start: |
12+
\A|\x00
13+
end: |
14+
\Z|\x00
15+
16+
expected:
17+
- name: meta.json
18+
start_offset: 0
19+
end_offset: 261
20+
21+
comments:
22+
- This spots `meta.json` files created by Arc, not the secrets themselves
23+
- The encrypted secrets will be in a numbered directory below the detected `meta.json` file
24+
- This can also spot uncompressed tar file backups created by Arc
25+

0 commit comments

Comments
 (0)