View Issue Details

IDProjectCategoryView StatusLast Update
0000237file[All Projects] Generalpublic2021-02-24 23:56
ReporterpxegerAssigned Tochristos 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.39 
Target VersionFixed in Version5.40 
Summary0000237: Detect Ansible Vault files
DescriptionAnsible Vault (https://docs.ansible.com/ansible/latest/user_guide/vault.html) is a simple AES-based file encryption system for Ansible.

The exact file format is documented at https://docs.ansible.com/ansible/latest/user_guide/vault.html#format-of-files-encrypted-with-ansible-vault, but essentially the magic bytes are (hexdump):

00000000: 2441 4e53 4942 4c45 5f56 4155 4c54 3b $ANSIBLE_VAULT;

It would be great if detection for this format could be added. At the moment it is just reported as "ASCII text".

Attached is an example file which contains the content "this is an example file" with the password "123"
Steps To Reproduce1. Create a file using `ansible-vault create myfile`
2. Enter some content in your editor and save the file
3. Use `file myfile`
Tagsmagic

Activities

pxeger

2021-02-11 09:17

reporter  

example_file (419 bytes)
$ANSIBLE_VAULT;1.1;AES256
66383264663034653131363432363730356537393562663063636633333831323933323533663335
3038623538353934373736313835323962653033643261320a356538666663363262316230656532
32666539663464613337376266383631393531396638633866396630343238663262383565653461
6533376463616562330a623234356664356337343339663361316261303838306332626638343637
62613636643330343164303261366562663061636366326565656462633332306235
example_file (419 bytes)

christos

2021-02-24 23:56

manager   ~0003561

Added, thanks!

Issue History

Date Modified Username Field Change
2021-02-11 09:17 pxeger New Issue
2021-02-11 09:17 pxeger File Added: example_file
2021-02-11 09:17 pxeger Tag Attached: magic
2021-02-24 23:56 christos Assigned To => christos
2021-02-24 23:56 christos Status new => assigned
2021-02-24 23:56 christos Status assigned => resolved
2021-02-24 23:56 christos Resolution open => fixed
2021-02-24 23:56 christos Fixed in Version => 5.40
2021-02-24 23:56 christos Note Added: 0003561