Authentication Troubleshooting

181 views
Skip to first unread message

Dustin Wright

unread,
Mar 1, 2022, 11:15:47 PM3/1/22
to magma-dev
Magma DEV Team,

I am looking for more guidance on troubleshooting authentication with Magma. I have spent several weeks learning the USIM authentication process and packet capturing sessions. No matter my changes I normally get the following error :

AUTHENTICATION FAILURE (EMM cause #20 "MAC failure")

I am trying to make USIM cards with a writer tool. Seems to write the card fine.

I am trying to only use the Ki not the OPc to authenticate the USIM cards. I've tried with and without the OPc value in Magma and it makes no difference.

If I try to populate the Base64 encoded OP in the Network > JSON it fails. I cannot seem to update the OP key here.

Can anyone provide next steps for troubleshooting the authentication?
How do I populate my OP into Magma correctly, or am I completely misunderstanding something?
Any suggestions for getting started with USIM's?

Dustin

sourabh...@gmail.com

unread,
Mar 1, 2022, 11:43:52 PM3/1/22
to magma-dev
Hi, 

I have faced this problem before where in I was not able to authenticate the USIM with Magma. The error code was MAC Failure. 
All the four values OPc, Ki, Rand and AMF were correct but still it resulted in Mac Failure. I did not had the option to program SIM cards. 
May be https://support.huawei.com/enterprise/zh/knowledge/EKB1000023723 can provide you more info. 
Reply all
Reply to author
Forward
0 new messages