← Back to Blog
Technical2 min read

How Passive Liveness Detection Works and Why It Matters

Understand how passive liveness detection prevents spoofing attacks in identity verification — photos, screens, and masks detected from a single image.

What Is Passive Liveness Detection?

Passive liveness detection determines whether a face in an image is a real, live person or a spoof attempt — such as a printed photo, a screen replay, or a 3D mask — all from a single image, with no user interaction required.

Unlike active liveness detection, which asks the user to perform actions (blink, turn head), passive liveness works silently in the background. The user simply takes a selfie, and the AI determines if it's genuine.

Why Does It Matter?

Without liveness detection, any face recognition system can be fooled by holding up a photo. This is a critical vulnerability for:

  • KYC/eKYC onboarding — fraudsters using stolen ID photos
  • Banking apps — unauthorized access with a victim's photo
  • Access control — bypassing security with a printed image
  • Exam proctoringcheating with pre-recorded video
  • How to Use It

    python
    import requests
    
    

    response = requests.post(

    "https://faceapi.arsa.technology/api/v1/face_liveness",

    headers={"x-key-secret": "YOUR_API_KEY"},

    files={"face_image": open("selfie.jpg", "rb")}

    )

    result = response.json()

    for face in result["faces"]:

    print(f"Real face: {face['is_real_face']}")

    print(f"Confidence: {face['liveness_confidence']}")

    When to Use Passive vs Active Liveness

    Passive liveness is ideal when you need frictionless verification. For higher security scenarios, combine it with active liveness which requires head movements.

    Learn more about implementing liveness in your identity verification flow, or try the API free.

    Ready to get started?

    Try ARSA Face Recognition API free with 100 API calls/month.

    Start Free Trial