pKaji: The PHP Analyzer

pKaji is a free service provided by MyCERT that allows one to analyze  PHP codes.  It facilitates detection of network activities and other potentially malicious activities within the code by using the ‘hooking’ technique. Basically, it uses the APD (Advance PHP Debugger) extension to hook the original PHP built-in function.

Using pKaji

To use pKaji, a user can upload a valid PHP file to pKaji with a size smaller than 1 Mb at The front-end of pKaji will forward the request to the pKaji-core engine. The process will probably take a few minutes depending on the server workload.

Result of the analysis will be in shown in xml format displaying each of the parameter sent to the function called.

Output Example

PHP code XML Output
set_time_limit(0); <function_call>
fsockopen(“”,”6667”, &$err_num, &$err_msg, 30); <function_call>

<parameter>, port=6667, , , 30</parameter>

echo “ID: ShiroHige<br>”; <function_call>
<parameter>$str=”ID: ShiroHige<br>”</parameter>


@getenv(“SERVER_ADDR”); <function_call>


To upload a file, you need to have account. You can request the login credentials via email honeynet [at] . Just tell us a bit about yourself and be patient 🙂 We definitely look forward to working with security teams and researchers in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *