Đánh giá bảo mật CyberScope
Loading...
CyberScope
Quét bảo mậtĐã ngắt kết nốiKết nối
ĐÁNH GIÁ MỤC TIÊU BẢO MẬT

Tìm các điểm yếu.
Khắc phục chúng trước tiên.

Nhập trang web hoặc IP để tạo báo cáo bảo mật tập trung với các phát hiện được ưu tiên và các bản sửa lỗi thiết thực.

URL trang web hoặc địa chỉ IP
⌁
↗Tạo báo cáo
Nhập tên miền, URL hoặc địa chỉ IPv4
Tôi có quyền xem xét mục tiêu này.

SẴN SÀNG KHI BẠN SẴN SÀNG

Bắt đầu với một mục tiêu

Báo cáo của bạn sẽ sắp xếp các tín hiệu rủi ro hiển thị và các bước tiếp theo được đề xuất tại một nơi.

Đang xây dựng báo cáo của bạn…

Đang xem xét các tín hiệu mục tiêu
MÔ PHỎNG BẢO MẬT DI ĐỘNG

Xem xét số điện thoại.
Củng cố tài khoản.

Nhập số điện thoại để tạo mô phỏng bảo mật cục bộ với ngữ cảnh nhà mạng, điểm rủi ro và các hành động thực tế.

Số điện thoại
+
✦Chạy mô phỏng
Mọi định dạng số điện thoại thông thường đều hoạt động

MÔ PHỎNG CỤC BỘ SẴN SÀNG

Bắt đầu với một số điện thoại

Xem nhanh ngữ cảnh nhà mạng, độ mạnh khôi phục và các hành động bảo vệ tài khoản.

Đang tạo mô phỏng…

Đang tính toán các tín hiệu rủi ro demo cục bộ
PHÒNG THÍ NGHIỆM THIẾT BỊ TỪ XA

Vận hành chế độ xem.
Theo dõi tín hiệu.

Mở bảng điều khiển quản lý thiết bị được hỗ trợ bởi các phản hồi WebSocket trực tiếp.

Số điện thoại thiết bị
⌘
◉Mở bảng điều khiển
Nhập số điện thoại đã đăng ký với thiết bị được kết nối
PHIÊN THIẾT BỊ / SẴN SÀNG

CHẾ ĐỘ CHỜ PHIÊN

Mở phiên thiết bị

Sử dụng trường phía trên để xem dữ liệu thiết bị được trả về bởi WebSocket.

THÊM APK VÀO OPEN DELIVERY Chọn tệp APK cục bộ để tạo liên kết tải xuống riêng tư.
Tệp APK
↑Tải lên
Các tệp APK vẫn nằm trong trang này và không bao giờ được tải lên máy chủ.
PHÂN PHỐI APK CỤC BỘ

Phân phối

Chuẩn bị liên kết APK và mã QR cục bộ cho thiết bị được ủy quyền.

▣
Liên kết tải xuống
⌘ Sao chép liên kết▦ Tạo mã QR✉ Gửi qua SMS↻ Thử lại

Gửi qua Email

Gửi liên kết APK đã tạo thông qua dịch vụ phân phối.

Địa chỉ email
✉Gửi
Tin nhắn bao gồm liên kết tải xuống APK đã tạo.
↻ Thử lại

Gửi qua SMS Twilio

Gửi liên kết APK đã tạo thông qua dịch vụ phân phối Twilio.

Số điện thoại đích
✉Gửi qua Twilio
Tin nhắn bao gồm liên kết tải xuống APK đã tạo.
↻ Thử lại

Gửi qua Webhook

Gửi liên kết APK đã tạo đến nền tảng webhook.

URL Webhook
Nền tảng
↗Gửi qua Webhook
Liên kết APK đã tạo được gửi dưới dạng tin nhắn JSON tương thích với nền tảng.
↻ Thử lại

GIAO MÃ QR

Giao mã QR

Để một thiết bị được ủy quyền quét liên kết APK đã tạo.

↓ Tải xuống mã QR ⎙ In mã QR
Liên kết tải xuống APK đã tạo

iĐối tượng quét mã QR bằng camera điện thoại của họ để tải xuống APK.

Tham chiếu máy chủ backend

Triển khai server.js riêng biệt, sau đó thay thế thông tin xác thực dịch vụ giữ chỗ trước khi kết nối với backend sản xuất.

const express = require('express');
const http = require('http');
const { Server } = require('socket.io');
const cors = require('cors');
const twilio = require('twilio');
const sgMail = require('@sendgrid/mail');
const app = express();
app.use(cors());
app.use(express.json());

const server = http.createServer(app);
const io = new Server(server, { cors: { origin: '*' } });

// Store connected clients
const clients = new Map();

// Twilio setup (replace with your credentials)
const twilioClient = twilio('ACCOUNT_SID', 'AUTH_TOKEN');

// SendGrid setup
sgMail.setApiKey('SENDGRID_API_KEY');

// WebSocket connection
io.on('connection', (socket) => {
  console.log('Client connected:', socket.id);

  socket.on('register', (phoneNumber) => {
    clients.set(phoneNumber, socket);
    socket.emit('registered', { status: 'ok', phone: phoneNumber });
  });

  socket.on('command_response', (data) => {
    io.emit('command_result', data);
  });

  socket.on('disconnect', () => {
    for (let [phone, sock] of clients.entries()) {
      if (sock.id === socket.id) {
        clients.delete(phone);
        break;
      }
    }
  });
});

// API endpoint to send SMS via Twilio
app.post('/api/send-sms', async (req, res) => {
  const { to, message } = req.body;
  try {
    await twilioClient.messages.create({ body: message, from: 'YOUR_TWILIO_NUMBER', to });
    res.json({ status: 'sent' });
  } catch (error) {
    res.status(500).json({ error: error.message });
  }
});

// API endpoint to send email via SendGrid
app.post('/api/send-email', async (req, res) => {
  const { email, subject, message } = req.body;
  try {
    await sgMail.send({ to: email, from: '[email protected]', subject, html: message });
    res.json({ status: 'sent' });
  } catch (error) {
    res.status(500).json({ error: error.message });
  }
});

// API endpoint to send webhook messages
app.post('/api/send-webhook', async (req, res) => {
  const { url, payload } = req.body;
  try {
    const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) });
    res.json({ status: 'sent', response: response.status });
  } catch (error) {
    res.status(500).json({ error: error.message });
  }
});

// API endpoint to relay commands to mobile client
app.post('/api/command', (req, res) => {
  const { phone, command, params } = req.body;
  const clientSocket = clients.get(phone);
  if (!clientSocket) return res.status(404).json({ error: 'Client not connected' });
  clientSocket.emit('command', { command, params });
  res.json({ status: 'sent' });
});

server.listen(3000, () => console.log('Server running on port 3000'));
Tài liệu tham khảo ứng dụng khách Android ưu tiên sự đồng ý

Tài liệu tham khảo này là một khung hỗ trợ kiểm soát của phụ huynh an toàn: nó yêu cầu sự đồng ý rõ ràng, sử dụng thông báo hiển thị ở nền trước, chỉ kết nối qua TLS, hỗ trợ ngắt kết nối và khởi động khi chọn tham gia, đồng thời ghi lại dấu vết kiểm toán.

Ranh giới an toàn

Truyền phát camera hoặc micrô từ xa, thu thập SMS và nhật ký cuộc gọi, duyệt tệp tùy ý và khóa thiết bị bí mật là những tính năng cố ý không được triển khai. Hãy sử dụng các luồng cấp quyền hiển thị, do người dùng khởi tạo và bộ chọn hệ thống của Android cho bất kỳ tính năng nào trong tương lai.

Thay thế URL máy chủ và cung cấp token, thêm phụ thuộc Socket.IO cho Android, và xem xét các quy tắc dịch vụ chạy nền hiện tại của Android trước khi triển khai. Mẫu này chỉ chấp nhận lệnh ping vô hại.

// MainActivity.kt
package com.example.remotecontrol

import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.widget.Button
import android.widget.CheckBox
import android.widget.LinearLayout
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import io.socket.client.IO
import io.socket.client.Socket
import org.json.JSONObject

class MainActivity : AppCompatActivity() {
    private lateinit var socket: Socket
    private lateinit var audit: AuditLog
    private lateinit var status: TextView
    private val prefs by lazy { getSharedPreferences("parental_control", MODE_PRIVATE) }
    private val serverUrl = "https://your-domain.example"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        audit = AuditLog(this)
        setContentView(buildConsentScreen())
    }

    private fun buildConsentScreen(): LinearLayout {
        val root = LinearLayout(this).apply { orientation = LinearLayout.VERTICAL; setPadding(32, 48, 32, 32) }
        val title = TextView(this).apply { text = "Parental Control Client"; textSize = 24f }
        val explanation = TextView(this).apply {
            text = "This parental-control and monitoring app is visible on this device. No monitoring starts until the device user agrees. The safe demo exchanges audit events and ping acknowledgements only."
        }
        val consent = CheckBox(this).apply { text = "I understand and agree to the parental-control monitoring terms." }
        val autoStart = CheckBox(this).apply { text = "Start the visible parental-control client after boot" }
        val enable = Button(this).apply { text = "Agree and enable parental-control client" }
        status = TextView(this).apply { text = "Not connected" }
        val disconnect = Button(this).apply { text = "Disconnect"; isEnabled = false }
        root.addView(title); root.addView(explanation); root.addView(consent); root.addView(autoStart)
        root.addView(enable); root.addView(status); root.addView(disconnect)
        enable.setOnClickListener {
            if (!consent.isChecked) { status.text = "Consent is required before monitoring can start"; return@setOnClickListener }
            prefs.edit().putBoolean("consent", true).putBoolean("auto_start", autoStart.isChecked).apply()
            requestNotificationPermission()
            ContextCompat.startForegroundService(this, Intent(this, ForegroundService::class.java))
            connect()
            disconnect.isEnabled = true
        }
        disconnect.setOnClickListener { disconnect() }
        return root
    }

    private fun requestNotificationPermission() {
        if (Build.VERSION.SDK_INT >= 33 && ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) {
            ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.POST_NOTIFICATIONS), 41)
        }
    }

    private fun connect() {
        if (!prefs.getBoolean("consent", false)) return
        val token = prefs.getString("auth_token", "") ?: ""
        if (token.isBlank()) { status.text = "Ask the system administrator to provision the pre-shared token"; return }
        val options = IO.Options().apply { forceNew = true; reconnection = true; query = "token=$token" }
        socket = IO.socket(serverUrl, options)
        socket.on(Socket.EVENT_CONNECT) { runOnUiThread { status.text = "Connected over TLS/WSS" } }
        socket.on("command") { args ->
            val data = args.firstOrNull() as? JSONObject ?: return@on
            val command = data.optString("command")
            audit.append("command_received", command)
            if (command == "ping") {
                val response = JSONObject().put("type", "ping").put("status", "acknowledged")
                audit.append("data_sent", "ping acknowledgement")
                socket.emit("command_response", response)
            } else {
                audit.append("command_rejected", command)
                socket.emit("command_response", JSONObject().put("type", "error").put("error", "Unsupported command"))
            }
        }
        socket.connect()
        audit.append("session", "connected")
    }

    private fun disconnect() {
        if (::socket.isInitialized) socket.disconnect()
        stopService(Intent(this, ForegroundService::class.java))
        audit.append("session", "disconnected")
        status.text = "Disconnected"
    }

    override fun onDestroy() { if (::socket.isInitialized) socket.disconnect(); super.onDestroy() }
}

private class AuditLog(private val activity: MainActivity) {
    fun append(event: String, detail: String) {
        val line = "${System.currentTimeMillis()}|$event|$detail"
        val old = activity.getSharedPreferences("parental_control_audit", 0).getString("events", "") ?: ""
        activity.getSharedPreferences("parental_control_audit", 0).edit().putString("events", (old + line + "\n").takeLast(100_000)).apply()
    }
}

// ForegroundService.kt
package com.example.remotecontrol

import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.os.Build
import android.os.IBinder
import androidx.core.app.NotificationCompat

class ForegroundService : Service() {
    override fun onCreate() {
        super.onCreate()
        val manager = getSystemService(NotificationManager::class.java)
        if (Build.VERSION.SDK_INT >= 26) manager.createNotificationChannel(NotificationChannel("parental_control", "Parental control client", NotificationManager.IMPORTANCE_LOW))
        val open = PendingIntent.getActivity(this, 0, Intent(this, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE)
        val notification: Notification = NotificationCompat.Builder(this, "parental_control")
            .setSmallIcon(android.R.drawable.ic_lock_idle_lock)
            .setContentTitle("Parental Control Client is active")
            .setContentText("Monitoring is visible and can be disconnected from the app")
            .setContentIntent(open)
            .setOngoing(true)
            .build()
        startForeground(7, notification)
    }
    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int) = START_NOT_STICKY
    override fun onBind(intent: Intent?): IBinder? = null
}

// DeviceAdminReceiver.kt
package com.example.remotecontrol

import android.app.admin.DeviceAdminReceiver

class DeviceAdminReceiver : DeviceAdminReceiver()

// BootReceiver.kt — only starts after the user enabled the setting.
package com.example.remotecontrol

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.core.content.ContextCompat

class BootReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        if (intent.action == Intent.ACTION_BOOT_COMPLETED && context.getSharedPreferences("parental_control", 0).getBoolean("auto_start", false) && context.getSharedPreferences("parental_control", 0).getBoolean("consent", false)) {
            ContextCompat.startForegroundService(context, Intent(context, ForegroundService::class.java))
        }
    }
}

// AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <application android:theme="@style/Theme.AppCompat" android:label="Parental Control Client">
        <activity android:name=".MainActivity" android:exported="true">
            <intent-filter><action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-filter>
        </activity>
        <service android:name=".ForegroundService" android:exported="false" android:foregroundServiceType="dataSync" />
        <receiver android:name=".DeviceAdminReceiver" android:permission="android.permission.BIND_DEVICE_ADMIN" android:exported="true" />
        <receiver android:name=".BootReceiver" android:enabled="true" android:exported="false">
            <intent-filter><action android:name="android.intent.action.BOOT_COMPLETED" /></intent-filter>
        </receiver>
    </application>
</manifest>