Cointime

Download App
iOS & Android

Where Would You Find Elf in Cybersecurity?

Validated Individual Expert

Well, we’ve all heard of the magic of Christmas, but let’s look at another magic thing … the magic of digital forensics. For this we have the concept of magic numbers, and which are identifiers of different file types. These magic numbers are special gifts for digital investigators, as they make the job of finding things a whole lot easier [here]. So, since it is Christmas, let’s have a bit of fun with 10 trivial facts on these magic numbers:

Trivial Fact 1: There’s an Elf in Linux. Unfortunately it’s not a Christmas Elf, but it is a magic file identifier for a LINUX executable, and where the file format starts with “.ELF” , and which defines the Executable and Linkable Format [here]:

Trivial Fact 2: The identifier for ZIP files was named after Phil Katz. At the start of a .ZIP file we will see the characters “PK”, and these are the initials of the creator of the ZIP file format. So what’s so special about PK? Ask any digital forensics investigator, and they will say that the two characters are often used to perform a quick search on a disk for ZIP files. We can see the “PK” magic number in all its glory [here]:

Trivial Fact 3: A Microsoft document is just a ZIP file. ZIP files are used to compress and package files, but it has also expanded its scope to integrate Microsoft Office documents which are now just ZIP files with an associated file extension to identify the file type [DOCX][XLSX][PPTX]:

If you ever have to change anything to do with the rights of a Microsoft document or extract some content, you just change the file extension to .ZIP, and can then open it as a ZIP file.

Trivial Fact 4: The identifier for EXE files is named after Mark Zbikowski(“MZ”). Mark was one of the lead developers of MS-DOS’s and his initials appear in the two characters of an EXE file [here]:

Trivial Fact 5: Sometimes it is good to look for TVs. Well, this fact is related to Trivial Fact 4, as the Base64 conversion for “MZ” is … “TV” [here]:

And so when an EXE is embedded into an email, it will travel in a Base64 format, such as with [here]:

Thus many network scanners look for the “TV” value within strings, as it might identify a Windows program that has been converted into a Base-64 format.

Trivial Fact 6: An Adobe Illustrator file is just a PDF. Adobe has long supported the PDF format as its main way to encapsulate a whole lot of files into a single package. The tell-tail sign of a PDF file is “%PDF”. Illustrator files are often just PDFs and can be opened in Adobe Reader [here]:

Here is an example of opening an AI file with Adobe Acrobat:

Trivial Fact 7: You don’t need X-ray eyes to see what’s going on in a program. Programs compiled from C++ often do not hide the strings within the program in the executable code. In the following we see a Linux executable and the text in the program is clear to see [link]:

The same thing happens with Microsoft Windows programs [here]:

An investigator can thus often scan across a disk and look for important identifiers, and where secret content could be embedded within an executable program.

Trivial Fact 8: Many documents just dump images and other content in their raw format. For file formats such as PDF and PPT we see images contained within the file in their original format, and where we can carve them out with tools such as scalpel. In the following we see TIF files, and PDFs contained in a single file [here]:

This helps digital forensics investigators as they can search a disk for images, even if they are contained in other files.

Trivial Fact 9: An encrypted ZIP file gives away its contents. And so you might think you can hide the contents of a ZIP files if you put a password on them. But, the names of the files can be seen in the plain when looking at the header of the ZIP file with a binary viewer. Here we see that this ZIP file contains the files “PROG2_02.PAS” and “PROG1_2.PAS” [here]:

Trivial Fact 10: RIFFs are used in music files (doh!). No, it’s not that kind of Jim Hendrix rif, as “RIFF” is defined as a Resource Interchange File Format bitstream, and is used in WAV files [here]:

Conclusions

So, after you have opened all your presents on Christmas Day, and bored with the Boxing Day film, here’s a little test for you:

Comments

All Comments

Recommended for you

  • Citi report: predicts that corporate finance will undergo major changes in the next 3 to 5 years, and DLT and AI will play a role

    Citi GPS has released a report titled "Financials 2030" exploring the future development direction of corporate finance functions. A survey found that 93% of surveyed financial executives believe that there will be significant changes in corporate finance functions in the next three to five years, but more than half of them are unsure of what these changes will be.

  • Fiamma Completes $4 Million Seed Round Financing

    Fiamma, a project based on BitVM2's on-chain ZKP verification infrastructure and Babylon's ecological infrastructure, announced the completion of a $4 million seed round of financing. Lightspeed Faction and L2 Iterative Ventures led the investment, with participation from Astera Ventures, Contribution Capital, Sats Ventures, Chapter One and FoundersHead, as well as BOB (Build on Bitcoin), Satlayer and Daedalus founders. The new funds will be used to accelerate product development and promote the adoption of its underlying technology.

  • Australia’s financial regulator proposes new crypto rules, emphasizing risks and mitigation measures

     Australian Securities and Investments Commission (ASIC) has released a consultation paper suggesting updates to its regulatory guidelines for digital assets, with a focus on compliance requirements under the Corporations Act. The revisions to Information Sheet 225 (INFO 225) include 13 worked examples aimed at clarifying when digital assets qualify as financial products, such as stablecoins, packaged tokens, and staking services. In these examples, ASIC outlines scenarios involving exchange tokens, interest-bearing stablecoins, and tokenized assets such as concert tickets. The draft guidance proposes that classification depends on "inherent rights, interests, expectations, and product features that are offered together with the token." ASIC encourages cryptocurrency companies to apply for an Australian Financial Services License, providing them with a safe harbor from legal action.

  • BlackRock executive: More and more investors from different wealth classes are looking at Bitcoin as a hedging tool

    Bitcoin has been rising all the way, breaking through the $100,000 mark. A large part of the demand driving the rise in Bitcoin prices has recently flowed into Bitcoin ETFs. Jay Jacobs, head of thematic and active ETFs in the United States at BlackRock, said that since its launch in January of this year, the value of the IBIT ETF has grown to over $45 billion, and its value has increased by $4.1 billion in just the past month. Jacobs said that in addition to candidates who are more friendly to cryptocurrencies winning in elections, an increasing number of investors from different wealth levels are beginning to see Bitcoin as a tool to hedge against geopolitical risks and currency depreciation caused by inflation. As ETFs become an easy way for investors to understand Bitcoin price trends, mainstream interest in cryptocurrencies reaching a critical point is only a matter of time. (Jinse)

  • BTC breaks through $101,500

    the market shows that BTC has broken through $101,500 and is currently trading at $101,510.91, with a 24-hour increase of 6.15%. The market is volatile, so please be prepared for risk control.

  • Trump announces series of appointments for key government positions

    President-elect Donald Trump has made a series of appointments, including Peter Navarro as senior counselor for trade and manufacturing, Paul Atkins as commissioner of the Securities and Exchange Commission, and former Rep. Billy Long as the Internal Revenue Service's commissioner. Trump has chosen people for most Senate-confirmed Cabinet-level jobs, as well as key roles that don't require confirmation. However, he is reportedly considering replacing Defense Secretary nominee Pete Hegseth amid allegations of public drunkenness and sexual misconduct.

  • Source: CFTC chairman candidate has put the suspension of Biden-era enforcement actions on the agenda

    According to FOX Business reporter Eleanor Terrett, CFTC Commissioner Caroline D. Pham is one of the candidates for the new CFTC chairman. Under the leadership of the new leadership, the suspension of enforcement actions during the Biden era has been put on the agenda.

  • Matrixport: Solana’s funding rate is currently as high as 70% annualized, and a price correction may occur

    According to a report, Matrixport has released a chart today stating that Grayscale has submitted an application to convert Solana Trust into a spot ETF. Although the current asset management scale of the product is relatively small at $134 million, if approved, it will set an important market precedent for other ETF issuers. It is important to note that Solana's financing rate is currently as high as 70% annualized, which creates significant pressure on leveraged long positions. Historical experience shows that similar high financing rates are often related to price corrections, as was the case in March of this year when the SOL-USDT price fell under similar financing rate backgrounds.

  • The Crypto DevRel Trap

    Why More Developers in Your Ecosystem Doesn't Translate Into More Adoption

  • MicroStrategy's $37B+ Bitcoin Bet (Is Just The Start)

    How Michael Saylor turned a B2B software company into one of the world's largest owners of Bitcoin.