Showing posts with label OS X. Show all posts
Showing posts with label OS X. Show all posts

Tuesday, May 2, 2017

New MacOS Malware, Signed With Legit Apple ID, Found Spying On HTTPS Traffic


Thursday, April 27, 2017 Swati Khandelwal


Many people believe that they are much less likely to be bothered by malware if they use a Mac computer, but is it really true? Unfortunately, No.

According to the McAfee Labs, malware attacks on Apple's Mac computers were up 744% in 2016, and its researchers have discovered nearly 460,000 Mac malware samples, which is still just a small part of overall Mac malware out in the wild.

Today, Malware Research team at CheckPoint have discovered a new piece of fully-undetectable Mac malware, which according to them, affects all versions of Mac OS X, has zero detections on VirusTotal and is "signed with a valid developer certificate (authenticated by Apple)."



Dubbed DOK, the malware is being distributed via a coordinated email phishing campaign and, according to the researchers, is the first major scale malware to target macOS users.

The malware has been designed to gain administrative privileges and install a new root certificate on the target system, which allows attackers to intercept and gain complete access to all victim communication, including SSL encrypted traffic.

Just almost three months ago, Malwarebytes researchers also discovered a rare piece of Mac-based espionage malware, dubbed Fruitfly, that was used to spy on biomedical research center computers and remained undetected for years.


Here's How the DOK Malware Works:
The malware is distributed via a phishing email masquerading as a message regarding supposed inconsistencies in their tax returns, tricking the victims into running an attached malicious .zip file, which contains the malware.

Since the malware author is using a valid developer certificate signed by Apple, the malware easily bypasses Gatekeeper -- an inbuilt security feature of the macOS operating system by Apple. Interestingly, the DOK malware is also undetectable in almost all antivirus products.



Once installed, the malware copies itself to the /Users/Shared/ folder and then add to "loginItem" in order to make itself persistent, allowing it to execute automatically every time the system reboots, until it finishes to install its payload.

The malware then creates a window on top of all other windows, displaying a message claiming that a security issue has been identified in the operating system and an update is available, for which the user has to enter his/her password.

Once the victim installed the update, the malware gains administrator privileges on the victim's machine and changes the victim system's network settings, allowing all outgoing connections to pass through a proxy.

According to CheckPoint researchers, "using those privileges, the malware will then install brew, a package manager for OS X, which will be used to install additional tools – TOR and SOCAT."


DOK Deletes itself after Setting up Attacker's Proxy
The malware then installs a new root certificate in the infected Mac, which allows the attacker to intercept the victim’s traffic using a man-in-the-middle (MiTM) attack.

"As a result of all of the above actions, when attempting to surf the web, the user’s web browser will first ask the attacker web page on TOR for proxy settings," the researchers say.

"The user traffic is then redirected through a proxy controlled by the attacker, who carries out a Man-In-the-Middle attack and impersonates the various sites the user attempts to surf. The attacker is free to read the victim's traffic and tamper with it in any way they please."According to researchers, almost no antivirus has updated its signature database to detect the DOK OS X malware, as the malware deletes itself once it modifies proxy settings on the target machines for interceptions.

Apple can resolve this issue just by revoking the developer certificate being abused by the malware author.

Meanwhile, users are always recommended to avoid clicking links contained in messages or emails from untrusted sources and always pay extra attention before proving your root password.

Tuesday, November 15, 2016

How to connect a Linux machine to Google Cloud Print

Google Cloud Print

connect a Linux machine to Google Cloud Print



By Jack Wallen | November 14, 2016, 8:55 AM PST

For a quick and easy way to extend your Linux printer server to your Google Cloud Print account, follow the steps in this tutorial.

If you have a Linux printer server, and you need to enable users to be able to print to your cloud-based printers, one easy method is to attach CUPS to a Google Account for use with Google Cloud Print. Great solution, right? But how do you pull that off?


Someone in the Linux community has made it not only possible, but easy. Let me walk you through the steps of connecting your CUPS printer server to a Google Cloud Print account.

I will be doing this on a Ubuntu 16.10 machine. The necessary software is available for Ubuntu as well as rpm-based distributions, Arch Linux, Gentoo, Portage ebuild, OS X, FreeBSD, and more.
Installation

The first thing you must do is install the necessary package. To do this, we must add a repository. Open your terminal window and issue the command:sudo add-apt-repository ppa:simon-cadman/niftyrepo

Now, update apt with the command:sudo apt-get update



Finally, install the software with the command:sudo apt-get install cupscloudprint


Once the installation is ready, you can connect your server to the Google Cloud Print account.

Connecting to your account


The developer of cupscloudprint has made this task incredibly simple. Go back to your terminal window and issue the command:sudo /usr/share/cloudprint-cups/setupcloudprint.py

The first thing that will happen is you'll be prompted to enter the email address associated with the cloud account. Type that address and hit enter. Next you'll be given a link to copy and paste into your browser (Figure A).

Figure A


Copy and paste the provided link into the browser.

If you haven't logged into your Google account from this browser, you'll be prompted for that information; otherwise, you'll be asked to Allow CUPS Cloud Print to manage your printers.
Click Allow.
You'll be given a code; copy that code and paste it into the terminal window at the Code From Google: prompt.
The command will output the accounts you currently have configured for Cloud Print. If you're happy with that, type y and hit Enter.
You'll be asked if you want to add all the printers associated with your account. Type y and hit Enter.
Once the printers have been added, you'll be asked if you want to use a prefix for the printers. If you do, type y, hit Enter, and then enter the necessary prefix; otherwise, type n and hit Enter.

Any printer you have associated with Google Cloud Print is now available to your Linux printer server. Quite painless, wouldn't you say?
Extending your printer server


What better way to extend your Linux printer server than to connect it to your Google Cloud Print account? With this setup, you can easily print to different locations (even in different states), so you don't have to expend the resources connecting printers to VPNs or other, costlier and complex, solutions.

Wednesday, October 12, 2016

Playing Warhammer Shadow of the Horned Rat on OS X



Recently GOG announced that they had re-released Warhammer Shadow of the Horned Rat (WSOTHR), it brought back great memories of playing this exciting strategy game in my childhood. I rushed over to purchase it only to find that it only worked on Windows. Due to my experience with WINE I was pretty sure I could get it working so I went ahead and purchased it and downloaded it. Unfortunately there are somethings I can’t fix and WSOTHR in WINE is one of them (see here) – the main issue was getting 256 colours to work in OS X.


After failing with WINE I went for the brute force approach – emulate an 90s PC on my Macbook, run Windows 95 and then run WSOTHR. First step was to get hold of the latestQEMU source and compile that on my Macbook – this was pretty easy though I recommend that you chose to only compile the 386 processor to save time, power and space.
Once you’ve got QEMU working I then got hold of a ISO of Win95, there are a number of places where you can find this – I suggest you search for Win95 and ISO and see what comes up. Roughly following this guide:
  1. Create a hard drive: $ qemu-img create -f qcow win95.disk 2G
  2. Run the emulator with the newly created hard drive as hda and the cdrom pointed to the Win95 ISO you’ve found. I recommend you go for a bit of ram as it’ll speed things up (see the -m 128)  $ qemu-system-i386 -L . -hda win95.disk -soundhw sb16 -M pc -m 128 –vga cirrus -cdrom win95_osr2_en.iso
  3. Install Win95 onto the hard drive, this took a couple of goes as it hung in a few places but finally managed to install.
  4. Boot up in to Win95, you might even get the classic tone coming through your speakers
  5. Next you need to install some cirrus VGA drivers to get the display to use 256 colours as well as create a ISO (CD Image) for WSOTHR.
    1. Download an original copy of WSOTHR (obviously having purchased GOG or owning an original), again this is a matter of searching online
    2. I created a ISO image of WSOTHR as well as a cirrus driver (I usedGD54461.41.EXE), I used Disk Utility on OS X, when you make an image ensure that you select CD/DVD Master and FAT as the format.
  6. Now you can boot Win95 but change the cdrom from the win95 iso to the newly created iso:  $ qemu-system-i386 -L . -hda win95.disk -soundhw sb16 -M pc -m 128 –vga cirrus -cdrom Master.iso
  7. You can now install the cirrus VGA driver, switch to 256 colours and then install WSOTHR
  8. Now you can play – CHARGE!

Conclusion – it runs pretty well, my Mid 2012 Macbook doesn’t burst in to fan while playing which is good though it isn’t the quickest running, you can turn some features on and off to see if that helps. The only real issue is that the cut scenes don’t work but this might be due to the copy of WSOTHR i’ve got. Otherwise I can now play an awesome game of my childhood/teens – it wouldn’t be difficult to install some other games such as C&C…

Thursday, October 6, 2016

Boot Camp vs. VM when running Windows on a Mac: How to select the best option






By Erik Eckel | October 5, 2016, 1:40 PM PST

Running Windows on a Mac is no longer daunting, though choosing between Boot Camp or a VM still requires careful consideration. Here are tips for selecting the best method.


Running Windows on a Mac was once a process fraught with tribulation, though now it's a common operation that should be painless. With continued Mac performance gains, Boot Camp improvements, and two capable virtual machine (VM) technologies in VMware Fusion and Parallels Desktop for Mac, Apple professionals have multiple options to reliably power Windows installations on Macs. The only trick is knowing which option—Boot Camp or a VM—works best for your intended Windows purposes. Here are recommendations for common scenarios.

SEE: Gallery: 10 screen sharing programs for Windows and Mac that make collaboration and support easy
Single proprietary Windows app

Likely the most common Windows-on-a-Mac need, many Apple professionals also require Windows due to the need to run one critical proprietary, often industry-specific, Windows application. Despite cloud-computing and web-based trends, some applications continue only providing full functionality when run within a dedicated Windows environment.

I possess such first-hand experience; an industry-specific professional services automation application powers my business' daily operations. While possessing mobile and web-based options, the program only provides full functionality—such as

Tuesday, September 27, 2016

Facebook releases Osquery Security Tool for Windows


osquery-windows-security-tool
OSquery, an open-source framework created by Facebook that allows organizations to look for potential malware or malicious activity on their networks, was available for Mac OS X and Linux environments until today.

But now the social network has announced that the company has developed a Windows version of its osquery tool, too.

When Facebook engineers want to monitor thousands of Apple Mac laptops across their organization, they use their own untraditional security tool called OSquery.

OSquery is a smart piece of cross-platform software that scans every single computer on an infrastructure and catalogs every aspect of it.

Then SQL-based queries allow developers and security teams to monitor low-level functions in real-time and quickly search for malicious behavior and vulnerable applications on their infrastructure.

In simple words, OSquery allows an organization to treat its infrastructure as a database, turning OS information into a format that can be queried using SQL-like statements.

This functionality is critical for administrators to perform incident response, diagnose systems and network level problems, help to troubleshoot performance issues, and more.
Facebook releases Osquery Security Tool for Windows
This open source endpoint security tool has become one of the most popular security projects onGitHub since its release in mid-2014 and was available for Linux distribution such as Ubuntu or CentOS, and Mac OS X machines.

So, if your organization was running a Windows environment, you were out of luck.

But, not today, as with the help of Trail of Bits, Facebook has finally launched the OSquery developer kit for Windows, allowing security teams to build customized solutions for their Windows networks.

"As adoption for osquery grew, a strong and active community emerged in support of a more open approach to security," reads the earlier version of Facebook's blog post provided to The Hacker News.

"We saw the long-held misconception of 'security by obscurity' fall away as people started sharing tooling and experiences with other members of the community. Our initial release of osquery was supported for Linux and OS X, but the community was also excited for a Windows version — so we set out to build it."

To get started with the OSquery developer kit for Windows, check this official documentation, the development environment, and a single script. The build is easy to install, and you can start coding right away.

You can read the full documentation of the development process of the OSquery developer kit for Windows on the blog post by Trail of Bits

How to Use Siri on Your Mac: A Quick Start Guide

Apple’s intelligent personal assistant Siri has (finally) made the jump to Mac, courtesy of the macOS 10.12 Sierra update. The update brings most of the features iOS users have had for years to the desktop, with a few caveats.5 Reasons to Install macOS Sierra Right Now & How to Upgrade 5 Reasons to Install macOS Sierra Right Now & How to UpgradeAfter a few months of public beta, the latest version of Apple's desktop operating system is ready for prime time.READ MORE
Controlling your Mac with your voice has never been easier. Here’s what you can do, and how to personalize the experience.

Hear the Voice

You’re asked to activate Siri during the macOS Sierra setup process. You can do this later by visitingSystem Preferences > Siri. On this screen, you can configure some things about how Siri works, including the default language and voice.
Siri Settings on macOS Sierra
Siri on Mac is available in many languages, including multiple versions of Chinese, English, and Spanish. In the United States, most are familiar with the American female voice. You can change this to an American male voice, a male/female Australian and British voice, plus female versions of Irish and South African English voices. Each accent changes the general Siri experience on Mac. Play around with these to find the one that best suits your needs.Voice of Siri Susan Bennett Tells MakeUseOf How Siri Changed Her Life Voice of Siri Susan Bennett Tells MakeUseOf How Siri Changed Her LifeAt the forefront of Apple's original caring, often funny voice-powered assistant is a voice recognized the world over. That voice belongs to Susan Bennett.READ MORE
Unlike Siri on iOS, Apple’s voice assistant on Mac doesn’t respond when you say “Hey Siri”. Instead, to begin a query, click the Siri icon in the Mac dock or menubar in the top-right of the screen. You can also set up a keyboard shortcut.
Under System Preferences you’ll find the following options:
  • Voice feedback — With this setting on, Siri responds to queries with a voice and by text. With this setting off, responses arrive through text only.
  • Mic input — If you have external microphones, you can use this setting to select it.
  • Keyboard shortcut — You can use any keyboard combination to activate Siri, withCommand+ Space being the default. You can also select from Option + Space and Function + Space. You can create different shortcuts by selecting Customize.

About Siri and Security

In macOS Sierra, Apple provides a lengthy security statement on Siri. Located on the Siri Settings page under “Siri and Privacy,” the report explains how Apple analyzes Siri queries. You should read this statement, especially as it relates to how Siri handles questions relating to Mac documents.Siri Is Listening: Has iOS Privacy Been Blown Open? Siri Is Listening: Has iOS Privacy Been Blown Open?Apple's has been accused of recording everything - absolutely everything - you say to Siri, and passing it to a third-party. But is this really a privacy breach, or is there good reason for it?READ MORE
On this point, Apple notes:
When you use Siri to search for your documents, the Siri request is sent to Apple, but the names and the content of your documents are not sent to Apple. The search is performed locally on the Mac.
You can learn more about how Cupertino handles privacy on the Apple website.
Siri on Mac offers a lot of useful features, even as a first generation release. These features fall into two broad categories, which we’ll call workflow and entertainment.

Let’s Get to Work

One of the main reasons to use Siri on your Mac is to improve and speed up your workflow. Central to this is Siri’s broad search capabilities. By just asking a question, Siri can find any document that resides on your Mac.Ditch The Dock To Speed Up Your Mac Workflow Ditch The Dock To Speed Up Your Mac WorkflowWhile the dock can't be entirely eliminated, there are many powerful alternatives that can reduce your dependence on using the dock as an app launcher.READ MORE

Finding Your Files

For example, you need to find a file with “2015” in the title. You don’t know the location of the file or its full file name. Before the arrival of Siri, you would type “2015” into Spotlight and hope for the best. With Siri, search becomes more efficient and yes, personal.
In our example, we could ask Siri:
  • “Show me all files with ‘2015’ in the title.”
  • “Show me files with ‘2015’ in the title, opened in 2016.”
  • “Show me all records with ‘2015’ in the title, located in the Desktop folder.”
Do you use Dropbox or OneDrive? As long as a folder is accessible from your Mac, Siri can search through it, even when those are remote files.

Siri Loves Photos

Enjoy snapping photos? Siri can search for images with ease thanks to new tagging features in Photos for Mac in macOS Sierra. You can also use Siri to find images from the web.
Siri Find Photos of Sunset on the Web
For example, you could ask Siri:
  • “Find photos from July 2014.”
  • “Find pictures of a sunset on the web.”
  • “Show me the NBC logo.”
  • “Find my photos from the beach.”
  • “Show me photos with Jon.”
Of course, for that last one to work you’ll need to open up Photos and label “Jon” under the newPeople album.

Conversions and Sums

Need to find a percentage quickly? Want to multiply two large numbers? Wondering how many feet are in 9 metres? Making a purchase overseas and wondering what it’ll cost in your local currency. These are all supported by Siri, simply ask:
  • “What’s 17% of 350?”
  • “How much is 45 multiplied by 300?”
  • “How many miles is 75 kilometers?”
  • “What is 500 US dollars in Australian dollars?”

Composing Documents

You can also create documents with Siri on Mac. To do so, start with a command such as “Send John a text” or “Send John an email”. From there, Siri will prompt you to compose the message using your voice.
Siri Mac Messages
When completed, Siri sends the message automatically. You can also use Siri to compose tweets, Facebook posts, and more. You cannot write documents in applications like Pages and Word with Siri. In this release, Siri cannot work with any third-party applications, unlike its iOS counterpart.
You could always try composing documents and longer passages with your Mac’s dictation feature though.Can You Write A Whole Article Using Voice Dictation on the Mac? Well I Just Did (And This Is It) Can You Write A Whole Article Using Voice Dictation on the Mac? Well I Just Did (And This Is It)What you're reading right now is an example of Apple's dictation and speech program in action. It may be useful for short passages, but can you write a whole article with it?READ MORE

Drag and Drop

Images, files, and other information Siri finds are easy to add to a folder. Just drag the results right to a window on your Desktop. Better still, you can pull images found on the web into Mac applications such as Pages and Numbers.

Free Space and Battery

Siri is also very good at finding critical information about your Mac, including free space and battery percentage.Calibrate & Maintain Your MacBook Battery For Best Performance Calibrate & Maintain Your MacBook Battery For Best PerformanceIf you correctly calibrate and maintain your MacBook battery, it's possible to improve performance and put off replacing it for as long as possible.READ MORE
To find this information, simply ask Siri:
  • “How much free space do I have?”
  • “How much battery do I have left?”
Whether it’s helping you compose a message or helping you find a relevant file, Siri on Mac has you covered.

The Fun Stuff

Your Mac likes to have fun too, and so does Siri. At launch, the voice assistant already knows a lot about the outside world, including sports news, Twitter results, weather, and more. Among the commands to try:
  • “What’s happening in the world?”
  • “What’s the weather in New York City?”
  • “Did the Boston Red Sox win yesterday?”
  • “What’s the latest from Twitter?”
Depending on your question, you can pin the results to Notification Center. By doing so, everything about that topic stays up to date. To pin an item, click on the “+” button at the top right of the Siri query result.
Sports Game Summary Siri on Mac
For example, the question “When do the New England Patriots play next” offers the results you see above. The Siri box contains information on the next two football games, including a score, when applicable. Notice that it also features the + button to pin this information to your Mac’s Notification Center.
To pin the entire future schedule of your favorite sports team, tell Siri something like, “New England Patriots schedule for 2016”.
Siri Find Cinema Movies Playing
There are a few more entertainment-related commands to get you started with Siri.
  • “What’s on at the cinema?”
  • “How many miles to Columbus, OH?”
  • “How many days until Thanksgiving?”
Siri on Mac is packed full of beneficial features even on day one. Just imagine what the future holds in future macOS releases.

Thursday, September 22, 2016

Customize Your Mac Command Line With These Terminal Alternatives

One of the best ways to make macOS your own is to customize the command line, either through alternative apps or just tricking out the Terminal app. Working with the command line can be the doorway to becoming a power user on your Mac. You can begin with some improvements to the Dock.These 6 Awesome Terminal Commands Will Boost Your MacBook These 6 Awesome Terminal Commands Will Boost Your MacBookYou can only cram so much into graphical user interface before it becomes cluttered, so it should come as no big surprise that you can do some really cool things using the Mac Terminal.READ MORE
The Mac’s reputation as the “easier” OS is only there because of the Mac vs. PC ads. There was an entirely different campaign in the early days of OS X that positioned it as the best way to use Unix. The full command line was there along with many Unix utilities.

HyperTerm (Free)

HyperTerm is a Terminal app that you customize by editing a file. If you’re an old enough Mac user or a Hackintosh enthusiast, hacking PREF files and KTEXTs is a familiar way to customize programs. If you’re a web programmer, it’s along the lines of CSS. The app has support for tabs, which you would expect from anything trying to compete with Terminal.How to Install Mac OS X on a PC (Without Using a Mac) How to Install Mac OS X on a PC (Without Using a Mac)READ MORE
HyperTerm Mac Terminal Example Screenshot
Once you open the configuration file for HyperTerm, you can set up plugins and extensions. The app’s website says to search via the command line, but you can find a great list of availableextensions on Github.
The list includes themes and extensions. There’s even one to use 1Password to manage your passwords for the command line. Once you find the extension you want, add it to the config file, and it starts running when you open the app.
You can check out the app’s page on how to develop an extension using Javascript. All of HyperTerm is built in Javascript. If you check Activity Monitor, you’ll see it loaded as a web view, not an app. If you’re looking for an extensible alternative to Terminal, this is it. It’s a freeware app too!

Cathode ($4.99)

Cathode is not meant to replace your Terminal with a productivity powerhouse. Instead, Cathode takes your Mac back to the good old days of CRT scan lines and glowing green text. It even has a fake room reflection from the background. There is something pretty great about a command line app configured entirely for nostalgia’s sake.
There is a compelling set of customization tools, allowing you to choose from the old school system design you like. Was your classic machine just white text on a black background? If you prefer the Doogie Howser look of white text on a blue background, you can choose that as well. I also allows you to choose how densely the text should be spaced. There’s a variety of monospace fonts to make sure that you can set the configuration to scratch your own nostalgic itch.
Cathode Mac Terminal Example Screenshot
Terminal and VIM combine in a way to create a distraction-free writing environment. With Cathode you have an added bit of flair. The aesthetic looks a bit like Wordstar, the old DOS app George R.R. Martin uses to write Game of Thrones (no promises Cathode will get you a deal with HBO). In fact, if you want to work with just a text editor in this style, check out the other developer’s app: Blinky.nano vs. vim: Terminal Text Editors Compared nano vs. vim: Terminal Text Editors ComparedAlthough Linux has become easy enough for practically anyone to use without ever having to use the Terminal, there are some of us who regularly use it or are curious about how one can control...READ MORE
Cathode even brings back the sounds of older computers. If you yearn for the simple days of the Apple II, this is a good approximation sitting on top of the power of a modern computer. There’s a demo you can try on the developer’s site, or you can pick up Cathode for $4.99 on the Mac App Store. There’s also an iOS version you can use for SSH sessions.

iTerm (Free, Donationware)

If you have a Mac IT guy at work, he probably uses iTerm. It’s one of the original and most powerful alternatives to Terminal. If you’re working with a few different command line apps, or connected to a bunch of remote servers, you can subdivide the window, so everything is displayed simultaneously. It ends up looking like total madness if you over do it, but it is possible.
The foundations of the huge recent updates to Terminal have their roots in iTerm. You can set different profiles, complete with a unique background image. Then you can open each tab and window split with different profiles, which can give visual distinctions to each working session.
iTerm Mac Terminal Example Screenshot
iTerm has a few unique features Apple hasn’t copied. Each command you enter can have a time stamp attached. You can also annotate each command or output, a convenient feature for sharing your work as a walkthrough. Combine with the Instant Replay function that allows you to step through each command you entered, and you’ve got a great tool for creating screenshot walkthroughs.
iTerm is an app for power users that live in the command line. It’s a free app supported by donations so that you can try it out easily. The main question you should ask yourself is what level of complexity do you need? Download it here.

What About Terminal?

With all of these alternatives, you could be forgiven for thinking macOS’ built in Terminal isn’t that powerful. Like most Apple apps, it strikes a balance between accessibility for new users and deep features for power users.
You can’t infinitely split the window like you can with iTerm, but Terminal does support tabs. Terminal can be customized with an array of colors and any system font. The background image can be to anything you like. This means that you can make a unique combination for a custom look for your Terminal. There’s a bunch of preset profiles built into the app, and you can set your customization as the default when Terminal opens.
Mac Terminal Example Screenshot
The profiles are useful because you can save a set of windows to open when you launch the app. As you can set each profile to run a command at startup, you can have a window open your remote SSH session, another to Vim, and yet another to your working directory. This can also be set up as tabs, rather than windows.
If you’re not able to install custom software on your work Mac, customization can still help you make your command line your own.

Doing More With the Command Line

We’ve looked at a few different options for customizing the Mac command line to make it your own. If you’re a Mac user, and you haven’t played around in Terminal, check out this tutorial for ideas on where to begin. Then you can check out some of these apps to find which fits your personal taste.


Related Posts Plugin for WordPress, Blogger...