Ini laporan rekaan untuk sebuah kedai rekaan, supaya anda nampak apa yang AURA Analyzer beri. Tiada apa di sini yang dianalisis.
Contoh semakan kod
kopi-senja-shop (example)
2 December 2026
71/100
Skor kesihatan
Bagaimana kod disusun. Keselamatan dikira berasingan.
2
Dapatan tahap tinggi
2 Tinggi3 Sederhana
Di mana risiko tertumpu
80 daripada 84 fail dibaca berdasarkan 39 peraturan keselamatan (dikumpulkan ikut OWASP Top 10). Lihat 39 rule dan cara ia disahkan
Ditulis dalam bahasa apa
- js 58%
- php 31%
- json 7%
1 isu kualiti dan 0 corak dijumpai pada struktur.
Macam mana angka ini dikira
5 dapatan dalam laporan ini 2 Tinggi3 Sederhana
| Datang dari | Dijumpai | Dikira di sini | Apa yang berlaku |
|---|---|---|---|
| Rule keselamatan AURA | 6 | 6 | Semua disimpan. |
| Semakan struktur (tab Security dalam Analyzer) | 0 | 0 | Semua disimpan. |
| Jumlah | 6 | Angka yang digunakan oleh setiap senarai, eksport dan ringkasan pembaikan di bawah. | |
| Ditinggalkan daripada senarai | −1 | 1 dinilai amaran palsu oleh semakan AI. | |
| Dipaparkan dalam senarai | 5 |
Laporan ini disimpan sebelum Analyzer merekod apa yang ditinggalkan, jadi lajur pertama untuk semakan struktur hanya tunjuk yang disimpan.
2 dapatan perlu diberi perhatian dulu; 3 lagi elok ditengok.
2 Tinggi3 Sederhana
Apa yang disemak
- 80 daripada 84 fail dibaca terhadap 39 rule keselamatan (dikumpul ikut OWASP Top 10). Selebihnya jenis fail yang rule tak baca, atau melebihi had bacaan: lihat “Apa yang tak disemak”.
- Cara kod disusun: fail, fungsi, cara ia bersambung, kod yang nampak tak digunakan atau berulang.
- Bahasa yang dijumpai: js 58%, php 31%, json 7%
- Sumber: repositori GitHub.
Apa yang tak disemak
- Sistem yang sedang berjalan: tiada apa diserang atau diuji secara live, jadi ini bukan ujian penembusan.
- Kelemahan yang diketahui dalam library pihak ketiga (tiada semakan dependency).
- Siapa dibenarkan buat apa, dan peraturan bisnes: imbasan tak boleh tahu apa yang app anda sepatutnya benarkan.
- Folder macam node_modules, vendor, dist dan build dilangkau.
- Untuk sumber GitHub dan GitLab, hanya fail yang dimuatkan oleh alat ini dibaca; repositori yang sangat besar dibaca sebahagian saja.
- Baris yang sangat panjang dan baris yang dijadikan komen dilangkau.
- Paling banyak 120 dapatan disimpan, tiga bagi setiap peraturan dalam setiap fail, jadi senarai yang panjang mungkin tak lengkap.
Serahkan dapatan ini kepada pembantu AI awak
Satu teks dengan semua dapatan, bukti, kenapa ia penting, cadangan pembaikan dan cara semak, serta peraturan untuk pembantu ikut. Ia tak ubah kod.
Baca ringkasan ini dulu sebelum salin
# Fix brief: kopi-senja-shop (example)
Static code review by AURA Analyzer, 1 December 2026. Code health grade C (71/100).
5 finding(s) below: 2 high, 3 medium, 0 low.
## About this codebase
- Source: a GitHub repository
- Languages: js 58%, php 31%, json 7%
- Size: 84 files read for structure, 9,460 lines of code
- Security rules: 80 of 84 files were read against 39 rules (OWASP Top 10 groups).
## How to work
1. Take the findings one at a time, in the order listed (most severe, and leaked secrets, first).
2. For each one, open the file and line and first confirm it is real in THIS codebase. The scan matches patterns and can be wrong. If it is a false alarm, say so and why, and change nothing.
3. If it is real, propose the smallest safe change and show it as a diff. Do not refactor, rename or reformat anything else, and do not touch files that are not listed.
4. Keep behaviour the same apart from the weakness. Run the existing tests after each change, or say that there are none.
5. Never print, paste or commit a real secret. The evidence below is masked on purpose. Use environment variables or a secrets manager.
6. If a fix needs a decision from me (a new secret, a setting on the live system, a new dependency), stop and ask instead of guessing.
7. A finding is done when the same code analysed again no longer lists it, and its "Verify" step passes.
## How to reply
After each finding give one line: `#number · real / false alarm / unsure · files changed · how you checked`. At the end give a table of all findings with their outcome, and list anything that still needs a person.
## Findings
### 1. [HIGH] Cloud access key in the code
- Type: A04 Cryptographic failures · rule key-aws
- Where: config/storage.js:3
- Evidence: `const KEY = "AKIA…";`
- Why it matters: A secret or a password may be readable by people who should not have it.
- Suggested fix (written by an AI review, check it): Revoke it today, issue a new one and read it from the environment.
- Effort: a code change
- Verify: Confirm the old secret no longer works, and that no secret appears anywhere in the code.
### 2. [HIGH] SQL built from request data
- Type: A05 Injection · rule sql-concat-2
- Where: app/orders.php:41
- Evidence: `$q = "SELECT * FROM orders WHERE id=" . $_GET['id'];`
- Why it matters: Text typed by a visitor may be run as a command, which can expose or change your data.
- Suggested fix (written by an AI review, check it): Use a prepared statement with a bound parameter.
- Effort: a code change
- Verify: Type unusual text (quotes, angle brackets) into the form. It should be shown as text or rejected.
### 3. [MEDIUM] Any website may call this API (CORS *)
- Type: A02 Security misconfiguration · rule cors-any
- Where: server/api.js:12
- Evidence: `res.setHeader('Access-Control-Allow-Origin', '*');`
- Why it matters: A setting is more open than it needs to be, which makes other problems easier to exploit.
- Suggested fix: List the exact websites that may call the API instead of *.
- Effort: quick (a setting or one line)
- Verify: Check the setting on the live system, not only in the code, and that only what you need is open.
### 4. [MEDIUM] Weak hash used near passwords
- Type: A04 Cryptographic failures · rule md5-pass
- Where: app/auth.php:17
- Evidence: `$hash = md5($password);`
- Why it matters: A secret or a password may be readable by people who should not have it.
- Suggested fix (written by an AI review, check it): Switch to password_hash() and re-hash on the next login.
- Effort: a code change
- Verify: Confirm the old secret no longer works, and that no secret appears anywhere in the code.
### 5. [MEDIUM] HTML written from a variable
- Type: A05 Injection · rule xss-sink
- Where: web/cart.js:88
- Evidence: `title.innerHTML = item.name;`
- Why it matters: Text typed by a visitor may be run as a command, which can expose or change your data.
- Suggested fix (written by an AI review, check it): Use textContent for plain text.
- Effort: a code change
- Verify: Type unusual text (quotes, angle brackets) into the form. It should be shown as text or rejected.
## What this review did not cover
- The running system: nothing is attacked or tested live, so this is not a penetration test.
- Known weaknesses in third-party libraries (no dependency check).
- Who is allowed to do what, and business rules: a scan cannot tell what your app is meant to allow.
- Folders such as node_modules, vendor, dist and build are skipped.
- For GitHub and GitLab sources, only the files the tool loaded are read; very large repositories are read in part.
- Very long lines and commented-out lines are skipped.
- At most 120 findings are kept, three per rule in each file, so a long list may be incomplete.
Reply to me in casual Malaysian Malay, the way friends chat at work: short, warm and simple, calling me “awak”. Use everyday words like “dah”, “tak”, “nak” and “boleh”, and keep common tech words in English (file, button, link, error). No formal or textbook Malay, and no SMS shortcuts like “yg” or “x”.
# Fix brief: kopi-senja-shop (example) Static code review by AURA Analyzer, 1 December 2026. Code health grade C (71/100). 2 finding(s) below: 2 high, 0 medium, 0 low. This is the high-severity part only; the full review has 5. ## About this codebase - Source: a GitHub repository - Languages: js 58%, php 31%, json 7% - Size: 84 files read for structure, 9,460 lines of code - Security rules: 80 of 84 files were read against 39 rules (OWASP Top 10 groups). ## How to work 1. Take the findings one at a time, in the order listed (most severe, and leaked secrets, first). 2. For each one, open the file and line and first confirm it is real in THIS codebase. The scan matches patterns and can be wrong. If it is a false alarm, say so and why, and change nothing. 3. If it is real, propose the smallest safe change and show it as a diff. Do not refactor, rename or reformat anything else, and do not touch files that are not listed. 4. Keep behaviour the same apart from the weakness. Run the existing tests after each change, or say that there are none. 5. Never print, paste or commit a real secret. The evidence below is masked on purpose. Use environment variables or a secrets manager. 6. If a fix needs a decision from me (a new secret, a setting on the live system, a new dependency), stop and ask instead of guessing. 7. A finding is done when the same code analysed again no longer lists it, and its "Verify" step passes. ## How to reply After each finding give one line: `#number · real / false alarm / unsure · files changed · how you checked`. At the end give a table of all findings with their outcome, and list anything that still needs a person. ## Findings ### 1. [HIGH] Cloud access key in the code - Type: A04 Cryptographic failures · rule key-aws - Where: config/storage.js:3 - Evidence: `const KEY = "AKIA…";` - Why it matters: A secret or a password may be readable by people who should not have it. - Suggested fix (written by an AI review, check it): Revoke it today, issue a new one and read it from the environment. - Effort: a code change - Verify: Confirm the old secret no longer works, and that no secret appears anywhere in the code. ### 2. [HIGH] SQL built from request data - Type: A05 Injection · rule sql-concat-2 - Where: app/orders.php:41 - Evidence: `$q = "SELECT * FROM orders WHERE id=" . $_GET['id'];` - Why it matters: Text typed by a visitor may be run as a command, which can expose or change your data. - Suggested fix (written by an AI review, check it): Use a prepared statement with a bound parameter. - Effort: a code change - Verify: Type unusual text (quotes, angle brackets) into the form. It should be shown as text or rejected. ## What this review did not cover - The running system: nothing is attacked or tested live, so this is not a penetration test. - Known weaknesses in third-party libraries (no dependency check). - Who is allowed to do what, and business rules: a scan cannot tell what your app is meant to allow. - Folders such as node_modules, vendor, dist and build are skipped. - For GitHub and GitLab sources, only the files the tool loaded are read; very large repositories are read in part. - Very long lines and commented-out lines are skipped. - At most 120 findings are kept, three per rule in each file, so a long list may be incomplete. Reply to me in casual Malaysian Malay, the way friends chat at work: short, warm and simple, calling me “awak”. Use everyday words like “dah”, “tak”, “nak” and “boleh”, and keep common tech words in English (file, button, link, error). No formal or textbook Malay, and no SMS shortcuts like “yg” or “x”.
Betulkan ini dulu
-
Cloud access key in the code Tinggi Perlu ubah kod
- Apa kemungkinan maksudnya
- Rahsia atau kata laluan mungkin boleh dibaca oleh orang yang tak sepatutnya.
- Apa yang perlu diubah
- Revoke it today, issue a new one and read it from the environment. ditulis oleh semakan AI
- Lepas itu sahkan
- Pastikan rahsia lama dah tak boleh digunakan, dan tiada rahsia muncul di mana-mana dalam kod.
Butiran teknikal
config/storage.js:3A04 Cryptographic failuresconst KEY = "AKIA…"; -
SQL built from request data Tinggi Perlu ubah kod
- Apa kemungkinan maksudnya
- Teks yang ditaip pelawat mungkin dijalankan sebagai arahan, yang boleh dedahkan atau ubah data anda.
- Apa yang perlu diubah
- Use a prepared statement with a bound parameter. ditulis oleh semakan AI
- Lepas itu sahkan
- Taip teks pelik (tanda petik, kurungan sudut) dalam borang. Ia sepatutnya dipaparkan sebagai teks atau ditolak.
Butiran teknikal
app/orders.php:41A05 Injection$q = "SELECT * FROM orders WHERE id=" . $_GET['id']; -
Any website may call this API (CORS *) Sederhana Baiki cepat
- Apa kemungkinan maksudnya
- Satu tetapan lebih terbuka daripada yang perlu, jadi masalah lain lebih senang dieksploitasi.
- Apa yang perlu diubah
- List the exact websites that may call the API instead of *.
- Lepas itu sahkan
- Semak tetapan itu pada sistem live, bukan dalam kod saja, dan pastikan hanya apa yang anda perlu saja terbuka.
Butiran teknikal
server/api.js:12A02 Security misconfigurationres.setHeader('Access-Control-Allow-Origin', '*'); -
Weak hash used near passwords Sederhana Perlu ubah kod
- Apa kemungkinan maksudnya
- Rahsia atau kata laluan mungkin boleh dibaca oleh orang yang tak sepatutnya.
- Apa yang perlu diubah
- Switch to password_hash() and re-hash on the next login. ditulis oleh semakan AI
- Lepas itu sahkan
- Pastikan rahsia lama dah tak boleh digunakan, dan tiada rahsia muncul di mana-mana dalam kod.
Butiran teknikal
app/auth.php:17A04 Cryptographic failures$hash = md5($password); -
HTML written from a variable Sederhana Perlu ubah kod
- Apa kemungkinan maksudnya
- Teks yang ditaip pelawat mungkin dijalankan sebagai arahan, yang boleh dedahkan atau ubah data anda.
- Apa yang perlu diubah
- Use textContent for plain text. ditulis oleh semakan AI
- Lepas itu sahkan
- Taip teks pelik (tanda petik, kurungan sudut) dalam borang. Ia sepatutnya dipaparkan sebagai teks atau ditolak.
Butiran teknikal
web/cart.js:88A05 Injectiontitle.innerHTML = item.name;
Apa nak cuba seterusnya
- Beri dapatan tahap tinggi kepada developer atau AI coder anda dulu, bersama bukti yang ditunjukkan di sini.
- Semak baki dapatan satu demi satu: pastikan setiap satu memang benar sebelum ubah kod.
- Kod yang ditanda “mungkin tak digunakan” cuma petunjuk, bukan keputusan muktamad: pastikan ia betul-betul tak digunakan sebelum buang.
- Lepas buat perubahan, analisis kod yang sama sekali lagi. Sesuatu dapatan dikira dah dibaiki bila ia hilang dan anda dah uji bahagian itu, bukan bila fail itu ditinggalkan.
Pandangan pertama daripada AURA Analyzer: ia baca bagaimana kod dibina dan tandakan isu yang mungkin ada. Ia bukan audit keselamatan atau pensijilan.
Semakan keselamatan peringkat tinggi, statik
AURA baca 80 daripada 84 fail berdasarkan 39 peraturan keselamatan ikut OWASP Top 10. Ia hanya baca kod dan tak menyerang sistem yang berjalan, jadi ia bukan ujian penembusan.
Semakan AI · Risiko keseluruhan: Tinggi
Two issues need attention before launch: a leaked cloud key and SQL built from request data. The rest are routine hardening.
Kemenangan pantas, pelan pembaikan dan apa yang tak diliputi semakan ini
Kemenangan pantas
- Rotate the cloud key today
- Search the code for other string-built queries
Pelan pembaikan
- Rotate secrets: Revoke and reissue keys, then move them to environment variables.
- Fix the queries: Replace string-built SQL with prepared statements.
Tidak diliputi semakan ini
- The running server and its settings
- Known weaknesses in third-party libraries
AI menulis ini daripada dapatan sahaja. Semak setiap perkara dengan kod anda sendiri sebelum bertindak, dan minta seseorang menguji sistem yang berjalan sebelum lancar.
| Tahap | Dapatan | Di mana | Apa nak buat · AI |
|---|---|---|---|
| Tinggi | Cloud access key in the code A04 Cryptographic failures | config/storage.js:3const KEY = "AKIA…"; |
Kemungkinan benar Anyone who can read the repository can use this key against your cloud account. Pembaikan: Revoke it today, issue a new one and read it from the environment. (Kecil usaha) |
| Tinggi | SQL built from request data A05 Injection | app/orders.php:41$q = "SELECT * FROM orders WHERE id=" . $_GET['id']; |
Kemungkinan benar The id goes straight into the query, so a visitor can change what the query does. Pembaikan: Use a prepared statement with a bound parameter. (Kecil usaha) |
| Sederhana | Weak hash used near passwords A04 Cryptographic failures | app/auth.php:17$hash = md5($password); |
Perlu disemak Check whether this hashes real customer passwords or something else. Pembaikan: Switch to password_hash() and re-hash on the next login. (Sederhana usaha) |
| Sederhana | HTML written from a variable A05 Injection | web/cart.js:88title.innerHTML = item.name; |
Perlu disemak Only a problem if item.name can be typed by a customer. Pembaikan: Use textContent for plain text. (Kecil usaha) |
| Sederhana | Any website may call this API (CORS *) A02 Security misconfiguration | server/api.js:12res.setHeader('Access-Control-Allow-Origin', '*'); |
List the exact websites that may call the API instead of *. |
| Rendah | Container image not pinned A03 Software supply chain failures | Dockerfile:1FROM node:latest |
Kemungkinan amaran palsu Common in development images and low risk on its own. Pembaikan: Pin a version when you next touch the Dockerfile. (Kecil usaha) |
Dapatan keselamatan
Tiada apa ditandakan oleh semakan yang dijalankan. Ini tak bermakna kod itu selamat.
Isu senibina dan kualiti
Amaran 9 Unused Functions
Functions not called from other files
web/legacy.jsapp/helpers.php- 7 lagi disenaraikan dalam panel Analyzer.
Tindakan dicadangkan
- Remove dead code high · 9 functions are never called from other files.
Apa nak buat: Check each, then delete what is really unused.
Less to read and test
Pergi lebih dalam dengan AURA
Langkah seterusnya di dalam AURA, dipilih untuk laporan ini.
-
AURA Pentest
Uji aplikasi anda yang sedang berjalan untuk kelemahan keselamatan biasa — pelengkap dinamik kepada semakan kod ini.
-
Ujian kelajuan
Lihat sepantas mana aplikasi anda dimuatkan dan apa yang melambatkannya.
-
Kajian pasaran
Semak permintaan sebelum anda bina lebih lagi.
-
Semua modul AURA
Setiap modul dalam keluarga AURA, di satu tempat.