Skip to content

A simple tool to manage keys in "security enclave" on flipper zero.

Notifications You must be signed in to change notification settings

shilapi/flipper-enclave-manager

Repository files navigation

Flipper enclave manager

A simple tool to manage keys in "security enclave" on flipper zero.

PLEASE DO NOT TRY THIS ON A ORIGINAL FLIPPER ZERO. THIS CAN REPLACE ALL KEYS IN YOUR SECURITY ENCLAVE AND BREAK YOUR U2F FUNCTION.

How to use

If you would like to clear the "Enclave broken" message on startup, you will need a special firmware with keys in it.

If you want to have your own key(for privacy, you should), you will need the tool in utils folder.

To use the U2F function, replace the U2F cert in whose assests folder with the cert&.u2f file in the cert folder.

Discover more on https://www.lapiw.icu/flipper_zero_cks_u2f

Current keys

Master key:
190677ACC8C903AFD9181A536E3BF2CFA755AA0953FE8021934F9183EC9A2224

Encrypted keys (unencrypted):
['F8A748AE6FE6D49D94BA5B286926623474A7DD91C0AF199C09AFFE784F4F7718', 
'678B83A36441A73DD1116A290FBEB886F28D3E49CDDBD4BC27AE87969A52F577', 
'F25EF9C77FE563A5FADE961D033C3A8D3463D66BDF0950B28A809068822A1C93', 
'D89A2C79024D6CC1BC48ED89AA04CF9FE542466C053DC22FC7B1E7C8790A305C', 
'5D033315BD78B5B5131FE5CC34D1F4505F90D21B6BF832A535F4ABC52092B553', 
'A12BED81C65D78ADE1BEEF7ED7AB5A73CA719AD342C67D164EEE5EC5916AE072', 
'DA2E59AC3DA3B8FB385783D80E20211BED35A342EC49282FC39697B20DF39FC6', 
'85855BDBF4474CB54A4816B52480A24AB2263245B85AEF363D40FEE540B5A614', 
'F3C454BBD1D8CBCF75490DD90F51380C5454902D1D59B84880C6C28672F5D53D', 
'B24C7753B7CE72734E3669F5F34865A1F8467B47DA030232C11D90E8FCBC9ED4']

Encrypted keys:
['3F9AE3871D217F2F4068743BBD06B8F0C3B186FF69D2D8F1410A44F87D0680A2', 
'AC186171386CC774E443BC96F0C08782F5E956F54E67E6D86075C341B96C3D91', 
'915B18EBD81139F6AC084FFD70DB44A0DBDFAD0301719D4080638D0A6B9DAE7E', 
'1DBE7E41D0B233419CECB98CFB6DF1CCE3243EF09DA5D4388CEFD67ED76D2783', 
'42328E22FBDEAF675F5A917CE70FDE0345E74CDA13FBBD8F4F26ADD761E475C7', 
'4B94199B7816B73DB744520ECB1B26E6BB317B478F76524785D66F18813587D9', 
'4B1F732A9D76A61C2080452A1226792668C1134B22794D6C890A3515CE502E6E', 
'FFB0052D21F5279DC3FF384DB9870782153786639EA357559646BCBAEE597DA1', 
'15DE6DE8ABBA53778A43D7EB2D364CF621D7AC0BF1327526320EDF254B593D9D', 
'53363569B91FDB389B08A0D3E81D3A974FCD1EF099BEB4B204A5020CEB864FCF']

All keys in C format:
{0x19, 0x06, 0x77, 0xAC, 0xC8, 0xC9, 0x03, 0xAF, 0xD9, 0x18, 0x1A, 0x53, 0x6E, 0x3B, 0xF2, 0xCF, 0xA7, 0x55, 0xAA, 0x09, 0x53, 0xFE, 0x80, 0x21, 0x93, 0x4F, 0x91, 0x83, 0xEC, 0x9A, 0x22, 0x24},
{0x3F, 0x9A, 0xE3, 0x87, 0x1D, 0x21, 0x7F, 0x2F, 0x40, 0x68, 0x74, 0x3B, 0xBD, 0x06, 0xB8, 0xF0, 0xC3, 0xB1, 0x86, 0xFF, 0x69, 0xD2, 0xD8, 0xF1, 0x41, 0x0A, 0x44, 0xF8, 0x7D, 0x06, 0x80, 0xA2},
{0xAC, 0x18, 0x61, 0x71, 0x38, 0x6C, 0xC7, 0x74, 0xE4, 0x43, 0xBC, 0x96, 0xF0, 0xC0, 0x87, 0x82, 0xF5, 0xE9, 0x56, 0xF5, 0x4E, 0x67, 0xE6, 0xD8, 0x60, 0x75, 0xC3, 0x41, 0xB9, 0x6C, 0x3D, 0x91},
{0x91, 0x5B, 0x18, 0xEB, 0xD8, 0x11, 0x39, 0xF6, 0xAC, 0x08, 0x4F, 0xFD, 0x70, 0xDB, 0x44, 0xA0, 0xDB, 0xDF, 0xAD, 0x03, 0x01, 0x71, 0x9D, 0x40, 0x80, 0x63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x3E, 0x9E, 0x06, 0x46, 0x1E, 0x65, 0x30, 0xE7, 0x1D, 0x7A, 0x77, 0xD8, 0xF2, 0x51},
{0xB2, 0x32, 0x56, 0xF8, 0xC2, 0xB1, 0xAE, 0x30, 0x00, 0xB2, 0xB2, 0x75, 0xE1, 0xA1, 0xA4, 0xF9}

Encrypted private key for cert:
39 7C 85 AD CF 6B F1 33 41 97 14 B3 F1 18 25 E8 73 9D E1 9D 93 99 F9 5B B2 F8 27 15 EE 01 C5 AE 7A C8 DB 10 C4 59 CE E9 0E 62 E7 1D 13 70 F8 D9 57 32 30 29 41 D6 FB 34 31 D5 CF D3 A5 31 48 91 68 6E 57 73 3F 49 AE 09 B8 15 80 6A D8 8B D4 B0 28 A2 99 70 E9 BF 57 28 77 9D EA 01 8F 39 1B 5A 30 2B 1F 7A 89 66 BD BB 9B 92 AF 45 51 C0 C6 1A F8 05 41 6D 45 5F 89 EE 65 BC 09 D0 DC F9 69 29

About

A simple tool to manage keys in "security enclave" on flipper zero.

Resources

Stars

Watchers

Forks

Packages

No packages published