Suspicious 80% lua Download

copilot-sdk-supercharged 2.0.2-1

Impersonates official GitHub Copilot SDK

Lua shellcode generatorBase64 decoding

Evidence

Lua environment variable access lines 34–37
34 -- Resolve options with defaults
35 self._cli_path = options.cliPath or os.getenv("COPILOT_CLI_PATH") or "copilot"
36 self._cwd = options.cwd
37 self._log_level = options.logLevel or "info"
Lua io.popen text lines 112–114
112 -- Open the process with bidirectional stdio via io.popen
113 -- Lua 5.1/5.2 io.popen only gives one direction. We need a workaround.
114 -- Strategy: use a pair of popen calls or the luaposix / LuaSocket approach.
Executes system commands lines 479–486
479 -- Create a FIFO for writing to the process's stdin
480 local fifo_path = os.tmpname() .. "_copilot_fifo"
481 local mkfifo_ok = os.execute("mkfifo " .. fifo_path .. " 2>/dev/null")
482 if not mkfifo_ok then
483 -- Fallback: use /tmp path
484 fifo_path = "/tmp/copilot_sdk_fifo_" .. tostring(os.time()) .. "_" .. tostring(math.random(100000))
485 os.execute("mkfifo " .. fifo_path)
486 end
Lua opens file in write mode lines 496–500
496 -- Open the FIFO for writing (this will block until the reader is connected,
497 -- which happens when the process starts reading from stdin)
498 local stdin_handle = io.open(fifo_path, "w")
499 if not stdin_handle then
500 stdout_handle:close()
Lua shellcode generator lines 513–517
513-- that is piped to the process stdin.
514function CopilotClient:_spawn_process_windows(cmd)
515 -- On Windows, use a simpler approach with named pipes via cmd.exe
516 -- We create a background process and communicate via temp files.
517 -- For a production SDK, one would use luaposix or a C extension.

Showing the top 5 files — 7 more files (82 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.