Questions tagged [memory]
Computer memory refers to a physical device that is used to store sequences of instructions (programs) or data (program state information) on a temporary or permanent basis for use in a computer.
351
questions
4
votes
1
answer
123
views
Why does this malicious code work? (Lua, FFI)
Below is a sandboxed Lua script that uses FFI to execute malicious C code. A fixed memory address is used to load a windows function GetProcAddress which is subsequently used to run a powershell ...
3
votes
1
answer
405
views
How does an eBPF program cause a kernel panic?
According to this RedHat knowledge base entry CrowdSource has similarly caused a kernel panic on Linux as well with eBPF program.
My question is how is this possible? eBPF is described as,
eBPF ...
0
votes
0
answers
101
views
Is it possible to hide a secret value from my own processes on Linux?
I have an application with a shared secret. This application runs as my user. However, Linux has the /proc directory, and particularly /proc/{pid}/mem and /proc/{pid}/maps. Any process created with ...
2
votes
2
answers
156
views
Can and should a penetration test report include an informational note about not having used a (by-design) memory-safe programming language?
Firstly, a quote from a good article about the importance of memory safety by memorysafety.org:
How common are memory safety vulnerabilities?
Extremely. A recent study found that 60-70% of ...
1
vote
0
answers
88
views
What are the security concerns from failing to unpin memory?
I am trying to understand the implication of CVE-2023-40791. The CVE reads:
"Linux kernel before 6.4.12 fails to unpin pages in certain situations".
NetApp says this could lead to ...
1
vote
1
answer
315
views
Examining linux memory dump with signs of compromise in yarascan
I have captured a memory dump of recent Ubuntu 22.04 kernel 6.2.0-39-generic.
captured image with LiMe and analyzed with volatility3.
did a yarascan against all known rules and found a suspicious ...
1
vote
1
answer
164
views
Can malware detect memory dumping?
Morning, I recently had need to check for malware on my PC by dumping the memory and searching for unwanted processes which could be malware, my question it's, is it possibile for malware to detect ...
0
votes
0
answers
249
views
Downsides of increased ASLR entropy
ASLR allows to randomize the base address of userspace applications. In Linux, the length of the randomized part of the mmap address can be specified via the kernel build config. It is bound by the ...
1
vote
2
answers
397
views
execute command in go without storing the command in a .exe file
I am trying to do a go program to execute a .exe file, but without be actually a .exe file. The idea is to read the executable from a .txt file and decode it (it is in base64). Once I have that code ...
1
vote
1
answer
120
views
Do frequently crashing programs pose a bigger security threat than stable programs?
If I have an app that's frequently and randomly crashing, will it impose a bigger security threat (e.g: possible attack vector) than apps that are stable? Or are both apps equally protected from such ...
3
votes
1
answer
261
views
How to check if a PCI device is trusted or untrusted by the Linux kernel (for IOMMU)?
I am looking into the protection provided by IOMMU against DMA attacks.
I noticed that the Linux kernel provides a feature called bounce buffers for untrusted PCI devices (https://lwn.net/Articles/...
3
votes
1
answer
319
views
accessing ELF in memory (Unix/Linux)
On Linux (and maybe UNIX), you can access and even modify process's stack with things like ptrace, process_vm_ready, etc., but is there a way to access the copy of the binary that's being executed ...
0
votes
1
answer
355
views
DLL Injection Win32 API
I want to know which Win32 API functions a certain executable calls. The executable is a 32-bit application.
I know what steps to take to perform a DLL injection and hook an API function.
However, ...
1
vote
0
answers
241
views
How to decrypt SSHv2 using AES-256 session keys from memory dump?
How to decrypt the plaintext contents of an SSH session from a PCAP file and SSHv2 AES session keys from a memory dump.
I have the full PCAP for the SSH sessions, including the initial handshake and ...
2
votes
2
answers
470
views
How to extract a .bat file with volatility
I am experimenting with the volatility2 tool.
I have created a memorydump of a windows 7 machine where i had a batch script file on the desktop of the machine.
I used the mftparser command as :
...
1
vote
2
answers
705
views
what is the safest way to open/decrypt an encrypted gpg/pgp file in memory | gnu/linux debian?
I would like to open/decrypt an encrypted gpg/pgp file in the main memory without leaving any footprints on the file system including swap,etc.
what is the safest option on a gnu/linux debian from ...
2
votes
1
answer
241
views
Why would garbage collection be a problem in password managers?
I was reading an infosec user's take on the LastPass data breach and noted something odd in his commentary on another password manager system (emphasis mine)
I have not done a thorough code review, ...
7
votes
1
answer
2k
views
How can two identical no-PIE binaries run simultaneously?
As I understood it (probably incorrectly) when a no-PIE binary gets loaded into memory it always has the same absolute base address.
This doesn't make sense to me. Consider the exact same program ...
1
vote
1
answer
303
views
Cuckoo dump a PE file from a memory dump?
Can Cuckoo extract PE files from a memory dump or record the import table of the running process? I need to record the import table in PE not the called/executed API from the process.
There is Process-...
1
vote
2
answers
316
views
Data remanence - DDR2
I read "Data Remanence in Semiconductor Devices" by Peter Gutmann, in which it is stated that it is possible to reconstruct the content of an erased SRAM based on changes of properties of ...
0
votes
0
answers
70
views
Could a no code module injected to memory phenomenon in the process tree of the steam.exe file be suspicious?
I found a page, which analyzing memory processes (https://analyze.intezer.com/)
After the searches, it didn't find anything harmful, but in the detailed analysis I found a module without code, which ...
6
votes
2
answers
5k
views
What is the function of Intel's Total Memory Encryption (TME)?
https://edc.intel.com/content/www/us/en/design/ipla/software-development-platforms/client/platforms/alder-lake-desktop/12th-generation-intel-core-processors-datasheet-volume-1-of-2/002/intel-multi-key-...
1
vote
0
answers
286
views
How do I go about analysing VirusTotal and Hatching Triage's memdumps?
I normally use volatility to analyse memory dumps, however, in this case it doesn't seem to be working. I get a "Symbol table not found" kind of error, even though I have downloaded and ...
0
votes
1
answer
1k
views
Is there a way to get Windows login password hint from SAM hive with volatility?
We know that every user in Windows has a password hint. This password hint is stored in the SAM hive, more specifically in the SAM\Domains\Account\Users path. Is there a way to extract this password ...
0
votes
1
answer
262
views
Can malware override and execute any memory location or it has to be specific?
Rather primitive Malware using Python3 and similar already available software on the victim's machine (which can also be compiled using PyInstaller/pycom if not) has the capability to override the ...
1
vote
1
answer
2k
views
How to extract a RSA private key from an ssh-agent core dump
I need to extract an RSA private key from an ssh-agent core dump running on ubuntu 20.04. I believe the ssh version is the latest. I have tried many Linux tools with no luck. I also wrote a python ...
-1
votes
1
answer
171
views
Confused about memory examination using gdb
I started reading "Hacking, The Art of Exploitation" and I am confused about some things regarding memory examination.
When I disassemble main, I get an output of all memories where the ...
0
votes
0
answers
257
views
sensitive data exposure from RAM memory [duplicate]
I have software written in C# and compiled as a .exe file.
How can I read sensitive data (like usernames, passwords, etc.) from RAM while it runs?
1
vote
0
answers
240
views
How hard is it to modify UEFI nvram if the device is off and the UEFI is locked?
This assumes that:
Machine is powered off
No UEFI backdoors
No Reflashing the firmware
No clearing the NVRAM (The point is to modify/read a small amount of NVRAM, instead of resetting it)
Device ...
0
votes
1
answer
475
views
Why it's safe to use used RAM?
As we know, instructions are stored in RAM. So, can I embed a controller chip (or something like this) that can change the content of RAM? (e.g. change the Windows 10 boot instructions into malicious ...
1
vote
2
answers
372
views
XD/NX Bit in UNIX [Memory Security]
I have been reading about XD/NX bit used in Memory Pages for security. I understand it is a security feature that can help reduce system exposure to viruses and malicious code. If enabled, processor ...
0
votes
0
answers
164
views
Is it possible to inject code using physical memory access to jailbreak phones?
Is it possible to inject code into RAM using physical access? For example desolder the RAM chips, solder something between the original RAM chip and the phone motherboard, and use that to directly ...
1
vote
0
answers
188
views
Cold boot attack on NAS
I'm familiar with the concept of cold boot attacks on laptop and desktop computers, where the goal is to find hidden encryption keys in the memory. I also think it's done on certain mobile phones. I ...
1
vote
0
answers
420
views
C - Remote string format attack exploit - %n Does not seem to write anything on the stack
[As part of a ctf] I am trying to exploit a remote server through a tcp connection. The server is using snprintf() and provides user input as the formatting string. My goal is to dump the stack. ...
0
votes
1
answer
125
views
What does leak in memory/info leaks?
When a binary is running and there is some memory/info leak are there areas of program (or OS?) memory which are more prone to leak and is a leak in one segment worse than in another segment?
2
votes
1
answer
858
views
Finding Officejet 8600's bulit-in RAM
Before I give away my dead HP Officejet 8600 Pro for recycling, I want to ensure that no memory remains on it. Even after extensive research, it's not easy to find conclusive information on whether a ...
3
votes
1
answer
250
views
Child processes vs microservices for communication between components
This is a question for operating system security experts.
We have an application using one platform/language, and it has to integrate with a library that uses another platform/language. There is no ...
0
votes
0
answers
346
views
64 Bit ELF Buffer Overflow Not working possibly due to if statement
I wrote the following:
#include <stdio.h>
int win(){
printf("Won!\n");
return 0;
}
int vulnerable(){
char buffer[20];
memset(buffer, 0, 10);
printf("Input: &...
2
votes
1
answer
624
views
Memory encryption against memory leaks
Will memory encryption (or compression) provided by Intel or AMD processors protect against attacks like HeartBleed or similar memory leaks?
0
votes
0
answers
162
views
"Intercepting" executable with FTK Imager
I want to analyze the traces of a program in my VM by executing it and then capturing the memory and disk using FTK Imager.
However, it looks like --given the environment I have-- the program only ...
3
votes
1
answer
699
views
Does Intel's vPro TME make a locked screen more secure?
This post seems on point but I didn't understand the answer enough to answer this question.
Intel's vPro offers "Total Memory Encryption" (TME), which encrypts RAM and system bus data while ...
-1
votes
1
answer
264
views
code and memory safety issues
I'm preparing for a computer security exam, and I found this question in previous exams
To create an authentication program, we write a check_auth function as
follows:
int check_auth(char *password) {...
0
votes
1
answer
499
views
Buffer overread
I am trying to understand buffer overread in my course in school. This code is an example from one of the lectures where buffer overread can be a problem. However, I do not understand how buffer ...
2
votes
1
answer
298
views
What does Snowden mean by "majority of vulnerabilities ... are introduced, for technical reasons ..., at the exact time the code is written"?
In a recent Substack article ("The Insecurity Industry", 2021-07-26) Edward Snowden writes:
The vast majority of vulnerabilities that are later discovered and exploited by the Insecurity ...
1
vote
2
answers
998
views
Create memory image of infected machine without risk
I am pretty new in the security world and I am writing a procedure on how to create a memory image of an infected machine for forensics.
The problem is that the machine does not have the tools for ...
4
votes
0
answers
259
views
Process Injection and Process Isolation by OS
If the OS is responsible for ensuring that one process cannot access another process memory space, and the point of process isolation is to keep processes separate from one another, then how can a ...
0
votes
1
answer
240
views
Memory Forensics on exited process
I am new to memory forensics. When a process in Windows is ended are all artifacts for the process in memory gone? I ask because my EDR solution gives me the local process ID of a process I am ...
0
votes
0
answers
118
views
How useful are memory forensic tools for detecting active attacks (considering current devices)
Are memory forensic tools useful for attack detection? Usually they are applied after an attack has happened. You could always constantly scan a machine but this requires lots of resources and ...
1
vote
1
answer
4k
views
Disable memory scrambling [closed]
Is it possible to disable memory scrambling for RAM?
Can you change what kind of algorithm is used?
Can you check from inside the OS which is using the memory if/what scrambling is in use?
Do devices ...
1
vote
1
answer
547
views
How do memory resident viruses work?
Two part question:
1-How do memory resident viruses stay in memory after the program which loaded them is finalized? If all memory is automatically deallocated by the OS once a program is finished, ...